Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# PendingIntent.OnFinished

*** ** * ** ***

` public static interface PendingIntent.OnFinished `   
` `

|---|
| android.app.PendingIntent.OnFinished |

<br />

*** ** * ** ***

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 `https://developer.android.com/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.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/app/PendingIntent.OnFinished#onSendFinished(android.app.PendingIntent,%20android.content.Intent,%20int,%20java.lang.String,%20android.os.Bundle)(https://developer.android.com/reference/android/app/PendingIntent pendingIntent, https://developer.android.com/reference/android/content/Intent intent, int resultCode, https://developer.android.com/reference/java/lang/String resultData, https://developer.android.com/reference/android/os/Bundle resultExtras) ` Called when a send operation as completed. |

## Public methods

### onSendFinished

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onSendFinished (PendingIntent pendingIntent, 
                Intent intent, 
                int resultCode, 
                String resultData, 
                Bundle resultExtras)
```

Called when a send operation as completed.

<br />

| Parameters ||
|---|---|
| `pendingIntent` | `PendingIntent`: The PendingIntent this operation was sent through. <br /> |
| `intent` | `Intent`: The original Intent that was sent. <br /> |
| `resultCode` | `int`: The final result code determined by the send. <br /> |
| `resultData` | `String`: The final data collected by a broadcast. <br /> |
| `resultExtras` | `Bundle`: The final extras collected by a broadcast. <br /> |