Freigeben über


PendingIntent.Send Method

Definition

Overloads

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

Perform the operation associated with this PendingIntent.

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

Perform the operation associated with this PendingIntent.

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

Perform the operation associated with this PendingIntent.

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.

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.

[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
code
Result
intent
Intent
handler
Handler
requiredPermission
String
options
Bundle
Attributes

Remarks

Java documentation 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.

[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

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

code
Result

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

intent
Intent

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

onFinished
PendingIntent.IOnFinished

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

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

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 SendBroadcast(Intent, String). If null, no permission is required.

Attributes

Exceptions

Throws CanceledException if the PendingIntent is no longer allowing more intents to be sent through it.

Remarks

Java documentation 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.

See also

  • Send()
  • Send(Result)
  • <xref:Android.App.PendingIntent.Send(Android.Content.Context%2c+Android.App.Result%2c+Android.App.Result)>
  • <xref:Android.App.PendingIntent.Send(Android.App.Result%2c+.IOnFinished%2c+.IOnFinished)>
  • <xref:Android.App.PendingIntent.Send(Android.Content.Context%2c+Android.App.Result%2c+Android.App.Result%2c+Android.App.Result%2c+Android.App.Result)>

Applies to

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

Perform the operation associated with this PendingIntent.

[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

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

code
Result

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

intent
Intent

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

onFinished
PendingIntent.IOnFinished

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

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

Exceptions

Throws CanceledException if the PendingIntent is no longer allowing more intents to be sent through it.

Remarks

Java documentation 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.

See also

  • Send()
  • Send(Result)
  • <xref:Android.App.PendingIntent.Send(Android.Content.Context%2c+Android.App.Result%2c+Android.App.Result)>
  • <xref:Android.App.PendingIntent.Send(Android.App.Result%2c+.IOnFinished%2c+.IOnFinished)>
  • <xref:Android.App.PendingIntent.Send(Android.Content.Context%2c+Android.App.Result%2c+Android.App.Result%2c+Android.App.Result%2c+Android.App.Result%2c+Android.App.Result)>

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

The Context of the caller.

code
Result

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

intent
Intent

Additional Intent data. See Intent#fillIn 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.

Attributes

Exceptions

Throws 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.

Java documentation for android.app.PendingIntent.send(android.content.Context, int, android.content.Intent).

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.

See also

  • <xref:Android.App.PendingIntent.Send(Android.Content.Context%2c+Android.App.Result%2c+Android.App.Result%2c+Android.App.Result%2c+Android.App.Result)>

Applies to

Send(Result, PendingIntent+IOnFinished, Handler)

Perform the operation associated with this PendingIntent.

[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

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

onFinished
PendingIntent.IOnFinished

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

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

Exceptions

Throws CanceledException if the PendingIntent is no longer allowing more intents to be sent through it.

Remarks

Java documentation 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.

See also

  • <xref:Android.App.PendingIntent.Send(Android.Content.Context%2c+Android.App.Result%2c+Android.App.Result%2c+Android.App.Result%2c+Android.App.Result)>

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

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.

Attributes

Remarks

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

Java documentation for android.app.PendingIntent.send(android.os.Bundle).

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

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

Attributes

Exceptions

Throws CanceledException if the PendingIntent is no longer allowing more intents to be sent through it.

Remarks

Perform the operation associated with this PendingIntent.

Java documentation for android.app.PendingIntent.send(int).

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.

See also

  • <xref:Android.App.PendingIntent.Send(Android.Content.Context%2c+Android.App.Result%2c+Android.App.Result%2c+Android.App.Result%2c+Android.App.Result)>

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

Exceptions

Throws CanceledException if the PendingIntent is no longer allowing more intents to be sent through it.

Remarks

Perform the operation associated with this PendingIntent.

Java documentation 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.

See also

  • <xref:Android.App.PendingIntent.Send(Android.Content.Context%2c+Android.App.Result%2c+Android.App.Result%2c+Android.App.Result%2c+Android.App.Result)>

Applies to