Android.App.PendingIntent.Send Method
Perform the operation associated with this PendingIntent, allowing the caller to specify information about the Intent to use and be notified when the send has completed.

Syntax

[Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/app/PendingIntent$OnFinished;Landroid/os/Handler;)V", "")]
public void Send (Android.Content.Context context, [Android.Runtime.GeneratedEnum] Result code, Android.Content.Intent intent, PendingIntent.IOnFinished onFinished, Android.OS.Handler handler)

See Also

PendingIntent.Send
PendingIntent.Send(Result)
PendingIntent.Send(Android.Content.Context, Android.App.Result, Android.App.Result)
PendingIntent.Send(Result, .IOnFinished, .IOnFinished)
PendingIntent.Send(Android.Content.Context, Android.App.Result, Android.App.Result, Android.App.Result, Android.App.Result, Android.App.Result)

Parameters

context
The Context of the caller. This may be null if intent is also null.
code
Result code to supply back to the PendingIntent's target.
intent
Additional Intent data. See Android.Content.Intent.FillIn(Android.Content.Intent, Android.Content.FillInFlags) for information on how this is applied to the original Intent. Use null to not modify the original Intent.
onFinished
The object to call back on when the send has completed, or null for no callback.
handler
Handler identifying the thread on which the callback should happen. If null, the callback will happen from the thread pool of the process.

Exceptions

TypeReason
!:NoType:android/app/PendingIntent$CanceledException;Href=../../../reference/android/app/PendingIntent.CanceledException.htmlThrows CanceledException if the PendingIntent is no longer allowing more intents to be sent through it.

Remarks

Perform the operation associated with this PendingIntent, allowing the caller to specify information about the Intent to use and be notified when the send has completed.

For the intent parameter, a PendingIntent often has restrictions on which fields can be supplied here, based on how the PendingIntent was retrieved in PendingIntent.GetActivity(Android.Content.Context, System.Int32, System.Int32, System.Int32), PendingIntent.GetBroadcast(Android.Content.Context, System.Int32, System.Int32, System.Int32), or PendingIntent.GetService(Android.Content.Context, System.Int32, System.Int32, System.Int32).

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1