PendingIntent.Send Method

Definition

Overloads

Name Description
Send(Context, Result, Intent, PendingIntent+IOnFinished, Handler, String, Bundle)

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.

Send(Context, Result, Intent, PendingIntent+IOnFinished, Handler, String)

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.

Send(Context, Result, Intent, PendingIntent+IOnFinished, Handler)

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.

Send(Context, Result, Intent)

Perform the operation associated with this PendingIntent, allowing the caller to specify information about the Intent to use.

Send(Result, PendingIntent+IOnFinished, Handler)

Perform the operation associated with this PendingIntent, allowing the caller to be notified when the send has completed.

Send(Bundle)

Perform the operation associated with this PendingIntent, supplying additional options for the operation.

Send(Result)

Perform the operation associated with this PendingIntent.

Send()

Perform the operation associated with this PendingIntent.

Send(Context, Result, Intent, PendingIntent+IOnFinished, Handler, String, Bundle)

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.

[Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/app/PendingIntent$OnFinished;Landroid/os/Handler;Ljava/lang/String;Landroid/os/Bundle;)V", "", ApiSince=23)]
public void Send(Android.Content.Context? context, Android.App.Result code, Android.Content.Intent? intent, Android.App.PendingIntent.IOnFinished? onFinished, Android.OS.Handler? handler, string? requiredPermission, Android.OS.Bundle? options);
[<Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/app/PendingIntent$OnFinished;Landroid/os/Handler;Ljava/lang/String;Landroid/os/Bundle;)V", "", ApiSince=23)>]
member this.Send : Android.Content.Context * Android.App.Result * Android.Content.Intent * Android.App.PendingIntent.IOnFinished * Android.OS.Handler * string * Android.OS.Bundle -> unit

Parameters

context
Context

Context: The Context of the caller. This may be null if intent is also null.

code
Result

int: Result code to supply back to the PendingIntent's target.

intent
Intent

Intent: Additional Intent data. See Intent.fillIn() for information on how this is applied to the original Intent. Use null to not modify the original Intent. If flag FLAG_IMMUTABLE was set when this pending intent was created, this argument will be ignored.

onFinished
PendingIntent.IOnFinished

PendingIntent.OnFinished: The object to call back on when the send has completed, or null for no callback.

handler
Handler

Handler: Handler identifying the thread on which the callback should happen. If null, the callback will happen from the thread pool of the process.

requiredPermission
String

String: Name of permission that a recipient of the PendingIntent is required to hold. This is only valid for broadcast intents, and corresponds to the permission argument in Context.sendOrderedBroadcast(Intent, String). If null, no permission is required.

options
Bundle

Bundle: Additional options the caller would like to provide to modify the sending behavior. May be built from an ActivityOptions to apply to an activity start. This value may be null.

Attributes

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 getActivity(Context, int, Intent, int), getBroadcast(Context, int, Intent, int), or getService(Context, int, Intent, int).

Android reference for android.app.PendingIntent.send.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Send(Context, Result, Intent, PendingIntent+IOnFinished, Handler, String)

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.

[Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/app/PendingIntent$OnFinished;Landroid/os/Handler;Ljava/lang/String;)V", "")]
public void Send(Android.Content.Context? context, Android.App.Result code, Android.Content.Intent? intent, Android.App.PendingIntent.IOnFinished? onFinished, Android.OS.Handler? handler, string? requiredPermission);
[<Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/app/PendingIntent$OnFinished;Landroid/os/Handler;Ljava/lang/String;)V", "")>]
member this.Send : Android.Content.Context * Android.App.Result * Android.Content.Intent * Android.App.PendingIntent.IOnFinished * Android.OS.Handler * string -> unit

Parameters

context
Context

Context: The Context of the caller. This may be null if intent is also null.

code
Result

int: Result code to supply back to the PendingIntent's target.

intent
Intent

Intent: Additional Intent data. See Intent.fillIn() for information on how this is applied to the original Intent. Use null to not modify the original Intent. If flag FLAG_IMMUTABLE was set when this pending intent was created, this argument will be ignored.

onFinished
PendingIntent.IOnFinished

PendingIntent.OnFinished: The object to call back on when the send has completed, or null for no callback.

handler
Handler

Handler: Handler identifying the thread on which the callback should happen. If null, the callback will happen from the thread pool of the process.

requiredPermission
String

String: Name of permission that a recipient of the PendingIntent is required to hold. This is only valid for broadcast intents, and corresponds to the permission argument in Context.sendOrderedBroadcast(Intent, String). If null, no permission is required.

Attributes

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 getActivity(Context, int, Intent, int), getBroadcast(Context, int, Intent, int), or getService(Context, int, Intent, int).

See also:

Android reference for android.app.PendingIntent.send.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Send(Context, Result, Intent, PendingIntent+IOnFinished, Handler)

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.

[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.App.Result code, Android.Content.Intent? intent, Android.App.PendingIntent.IOnFinished? onFinished, Android.OS.Handler? handler);
[<Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/app/PendingIntent$OnFinished;Landroid/os/Handler;)V", "")>]
member this.Send : Android.Content.Context * Android.App.Result * Android.Content.Intent * Android.App.PendingIntent.IOnFinished * Android.OS.Handler -> unit

Parameters

context
Context

Context: The Context of the caller. This may be null if intent is also null.

code
Result

int: Result code to supply back to the PendingIntent's target.

intent
Intent

Intent: Additional Intent data. See Intent.fillIn() for information on how this is applied to the original Intent. Use null to not modify the original Intent. If flag FLAG_IMMUTABLE was set when this pending intent was created, this argument will be ignored.

onFinished
PendingIntent.IOnFinished

PendingIntent.OnFinished: The object to call back on when the send has completed, or null for no callback.

handler
Handler

Handler: Handler identifying the thread on which the callback should happen. If null, the callback will happen from the thread pool of the process.

Attributes

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 getActivity(Context, int, Intent, int), getBroadcast(Context, int, Intent, int), or getService(Context, int, Intent, int).

See also:

Android reference for android.app.PendingIntent.send.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Send(Context, Result, Intent)

Perform the operation associated with this PendingIntent, allowing the caller to specify information about the Intent to use.

[Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;)V", "")]
public void Send(Android.Content.Context? context, Android.App.Result code, Android.Content.Intent? intent);
[<Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;)V", "")>]
member this.Send : Android.Content.Context * Android.App.Result * Android.Content.Intent -> unit

Parameters

context
Context

Context: The Context of the caller.

code
Result

int: Result code to supply back to the PendingIntent's target.

intent
Intent

Intent: Additional Intent data. See Intent.fillIn() for information on how this is applied to the original Intent. If flag FLAG_IMMUTABLE was set when this pending intent was created, this argument will be ignored. This value may be null.

Attributes

Remarks

Perform the operation associated with this PendingIntent, allowing the caller to specify information about the Intent to use.

See also:

Android reference for android.app.PendingIntent.send.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Send(Result, PendingIntent+IOnFinished, Handler)

Perform the operation associated with this PendingIntent, allowing the caller to be notified when the send has completed.

[Android.Runtime.Register("send", "(ILandroid/app/PendingIntent$OnFinished;Landroid/os/Handler;)V", "")]
public void Send(Android.App.Result code, Android.App.PendingIntent.IOnFinished? onFinished, Android.OS.Handler? handler);
[<Android.Runtime.Register("send", "(ILandroid/app/PendingIntent$OnFinished;Landroid/os/Handler;)V", "")>]
member this.Send : Android.App.Result * Android.App.PendingIntent.IOnFinished * Android.OS.Handler -> unit

Parameters

code
Result

int: Result code to supply back to the PendingIntent's target.

onFinished
PendingIntent.IOnFinished

PendingIntent.OnFinished: The object to call back on when the send has completed, or null for no callback.

handler
Handler

Handler: Handler identifying the thread on which the callback should happen. If null, the callback will happen from the thread pool of the process.

Attributes

Remarks

Perform the operation associated with this PendingIntent, allowing the caller to be notified when the send has completed.

See also:

Android reference for android.app.PendingIntent.send.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Send(Bundle)

Perform the operation associated with this PendingIntent, supplying additional options for the operation.

[Android.Runtime.Register("send", "(Landroid/os/Bundle;)V", "", ApiSince=34)]
public void Send(Android.OS.Bundle? options);
[<Android.Runtime.Register("send", "(Landroid/os/Bundle;)V", "", ApiSince=34)>]
member this.Send : Android.OS.Bundle -> unit

Parameters

options
Bundle

Bundle: Additional options the caller would like to provide to modify the sending behavior. May be built from an ActivityOptions to apply to an activity start. This value may be null.

Attributes

Remarks

Perform the operation associated with this PendingIntent, supplying additional options for the operation.

See also:

Android reference for android.app.PendingIntent.send.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Send(Result)

Perform the operation associated with this PendingIntent.

[Android.Runtime.Register("send", "(I)V", "")]
public void Send(Android.App.Result code);
[<Android.Runtime.Register("send", "(I)V", "")>]
member this.Send : Android.App.Result -> unit

Parameters

code
Result

int: Result code to supply back to the PendingIntent's target.

Attributes

Remarks

Perform the operation associated with this PendingIntent.

See also:

Android reference for android.app.PendingIntent.send.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Send()

Perform the operation associated with this PendingIntent.

[Android.Runtime.Register("send", "()V", "")]
public void Send();
[<Android.Runtime.Register("send", "()V", "")>]
member this.Send : unit -> unit
Attributes

Remarks

Perform the operation associated with this PendingIntent.

See also:

Android reference for android.app.PendingIntent.send.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to