Stay organized with collections
Save and categorize content based on your preferences.
OnFinished
interface 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 |
abstract Unit |
Called when a send operation as completed.
|
Public methods
onSendFinished
abstract fun onSendFinished(
IntentSender: IntentSender!,
intent: Intent!,
resultCode: Int,
resultData: String!,
resultExtras: Bundle!
): Unit
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.
[[["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,["# IntentSender.OnFinished\n\nAdded in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnFinished\n==========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/content/IntentSender.OnFinished \"View this page in Java\") \n\n```\ninterface OnFinished\n```\n\n|----------------------------------------------|\n| [android.content.IntentSender.OnFinished](#) |\n\nCallback 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()](/reference/kotlin/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20kotlin.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20kotlin.Int,%20kotlin.String,%20android.os.Bundle)) with a final BroadcastReceiver.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onSendFinished](#onSendFinished(android.content.IntentSender,%20android.content.Intent,%20kotlin.Int,%20kotlin.String,%20android.os.Bundle))`(`IntentSender:` `[IntentSender](/reference/kotlin/android/content/IntentSender)!`, `intent:` `[Intent](/reference/kotlin/android/content/Intent)!`, `resultCode:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `resultData:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `resultExtras:` `[Bundle](../os/Bundle.html#)!`)` Called when a send operation as completed. |\n\nPublic methods\n--------------\n\n### onSendFinished\n\nAdded in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onSendFinished(\n IntentSender: IntentSender!, \n intent: Intent!, \n resultCode: Int, \n resultData: String!, \n resultExtras: Bundle!\n): Unit\n```\n\nCalled when a send operation as completed.\n\n| Parameters ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------|\n| `IntentSender` | [IntentSender](/reference/kotlin/android/content/IntentSender)!: The IntentSender this operation was sent through. |\n| `intent` | [Intent](/reference/kotlin/android/content/Intent)!: The original Intent that was sent. |\n| `resultCode` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The final result code determined by the send. |\n| `resultData` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: The final data collected by a broadcast. |\n| `resultExtras` | [Bundle](../os/Bundle.html#)!: The final extras collected by a broadcast. |"]]