Stay organized with collections
Save and categorize content based on your preferences.
IntentSender.OnFinished
public
static
interface
IntentSender.OnFinished
android.content.IntentSender.OnFinished
|
Callback interface for discovering when a send operation has
completed. Primarily for use with a IntentSender 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 (IntentSender IntentSender,
Intent intent,
int resultCode,
String resultData,
Bundle resultExtras)
Called when a send operation as completed.
Parameters |
IntentSender |
IntentSender : The IntentSender 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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# IntentSender.OnFinished\n\nAdded in [API level 4](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nIntentSender.OnFinished\n=======================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/content/IntentSender.OnFinished \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nIntentSender.OnFinished\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------|\n| android.content.IntentSender.OnFinished |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCallback interface for discovering when a send operation has\ncompleted. Primarily for use with a IntentSender 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/content/IntentSender.OnFinished#onSendFinished(android.content.IntentSender,%20android.content.Intent,%20int,%20java.lang.String,%20android.os.Bundle))`(`[IntentSender](/reference/android/content/IntentSender)` IntentSender, `[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 4](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onSendFinished (IntentSender IntentSender, \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| `IntentSender` | `IntentSender`: The IntentSender 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 |"]]