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 PendingIntent 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(
pendingIntent: PendingIntent!,
intent: Intent!,
resultCode: Int,
resultData: String!,
resultExtras: Bundle!
): Unit
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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnFinished\n==========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/app/PendingIntent.OnFinished \"View this page in Java\") \n\n```\ninterface OnFinished\n```\n\n|-------------------------------------------|\n| [android.app.PendingIntent.OnFinished](#) |\n\nCallback 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()](../content/Context.html#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.app.PendingIntent,%20android.content.Intent,%20kotlin.Int,%20kotlin.String,%20android.os.Bundle))`(`pendingIntent:` `[PendingIntent](/reference/kotlin/android/app/PendingIntent)!`, `intent:` `[Intent](../content/Intent.html#)!`, `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 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onSendFinished(\n pendingIntent: PendingIntent!, \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| `pendingIntent` | [PendingIntent](/reference/kotlin/android/app/PendingIntent)!: The PendingIntent this operation was sent through. |\n| `intent` | [Intent](../content/Intent.html#)!: 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. |"]]