Stay organized with collections
Save and categorize content based on your preferences.
PendingIntent.OnFinished
public
static
interface
PendingIntent.OnFinished
android.app.PendingIntent.OnFinished
|
Callback interface for discovering when a send operation has
completed. Primarily for use with a PendingIntent that is
performing a broadcast, this provides the same information as
calling Context.sendBroadcast()
with a final BroadcastReceiver.
Summary
Public methods
onSendFinished
public abstract void onSendFinished (PendingIntent pendingIntent,
Intent intent,
int resultCode,
String resultData,
Bundle resultExtras)
Called when a send operation as completed.
Parameters |
pendingIntent |
PendingIntent : The PendingIntent this operation was sent through. |
intent |
Intent : The original Intent that was sent. |
resultCode |
int : The final result code determined by the send. |
resultData |
String : The final data collected by a broadcast. |
resultExtras |
Bundle : The final extras collected by a broadcast. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# PendingIntent.OnFinished\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nPendingIntent.OnFinished\n========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/app/PendingIntent.OnFinished \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nPendingIntent.OnFinished\n`\n\n\n`\n\n\n`\n\n|--------------------------------------|\n| android.app.PendingIntent.OnFinished |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCallback interface for discovering when a send operation has\ncompleted. Primarily for use with a PendingIntent that is\nperforming a broadcast, this provides the same information as\ncalling [Context.sendBroadcast()](/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)) with a final BroadcastReceiver.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onSendFinished](/reference/android/app/PendingIntent.OnFinished#onSendFinished(android.app.PendingIntent,%20android.content.Intent,%20int,%20java.lang.String,%20android.os.Bundle))`(`[PendingIntent](/reference/android/app/PendingIntent)` pendingIntent, `[Intent](/reference/android/content/Intent)` intent, int resultCode, `[String](/reference/java/lang/String)` resultData, `[Bundle](/reference/android/os/Bundle)` resultExtras) ` Called when a send operation as completed. |\n\nPublic methods\n--------------\n\n### onSendFinished\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onSendFinished (PendingIntent pendingIntent, \n Intent intent, \n int resultCode, \n String resultData, \n Bundle resultExtras)\n```\n\nCalled when a send operation as completed.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------------|----------------------------------------------------------------------------|\n| `pendingIntent` | `PendingIntent`: The PendingIntent this operation was sent through. \u003cbr /\u003e |\n| `intent` | `Intent`: The original Intent that was sent. \u003cbr /\u003e |\n| `resultCode` | `int`: The final result code determined by the send. \u003cbr /\u003e |\n| `resultData` | `String`: The final data collected by a broadcast. \u003cbr /\u003e |\n| `resultExtras` | `Bundle`: The final extras collected by a broadcast. \u003cbr /\u003e |"]]