Sdílet prostřednictvím


IntentSender.SendIntent Method

Definition

Overloads

SendIntent(Context, Result, Intent, IntentSender+IOnFinished, Handler)

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

SendIntent(Context, Result, Intent, IntentSender+IOnFinished, Handler, String)

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

SendIntent(Context, Result, Intent, IntentSender+IOnFinished, Handler)

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

[Android.Runtime.Register("sendIntent", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/content/IntentSender$OnFinished;Landroid/os/Handler;)V", "GetSendIntent_Landroid_content_Context_ILandroid_content_Intent_Landroid_content_IntentSender_OnFinished_Landroid_os_Handler_Handler")]
public virtual void SendIntent (Android.Content.Context? context, Android.App.Result code, Android.Content.Intent? intent, Android.Content.IntentSender.IOnFinished? onFinished, Android.OS.Handler? handler);
[<Android.Runtime.Register("sendIntent", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/content/IntentSender$OnFinished;Landroid/os/Handler;)V", "GetSendIntent_Landroid_content_Context_ILandroid_content_Intent_Landroid_content_IntentSender_OnFinished_Landroid_os_Handler_Handler")>]
abstract member SendIntent : Android.Content.Context * Android.App.Result * Android.Content.Intent * Android.Content.IntentSender.IOnFinished * Android.OS.Handler -> unit
override this.SendIntent : Android.Content.Context * Android.App.Result * Android.Content.Intent * Android.Content.IntentSender.IOnFinished * Android.OS.Handler -> unit

Parameters

context
Context

The Context of the caller. This may be null if <var>intent</var> is also null.

code
Result

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

intent
Intent

Additional Intent data. See Intent#fillIn Intent.fillIn() for information on how this is applied to the original Intent. Use null to not modify the original Intent.

onFinished
IntentSender.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 CanceledIntentException if the IntentSender is no longer allowing more intents to be sent through it.

Remarks

Java documentation for android.content.IntentSender.sendIntent(android.content.Context, int, android.content.Intent, android.content.OnFinished, android.os.Handler).

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

SendIntent(Context, Result, Intent, IntentSender+IOnFinished, Handler, String)

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

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

Parameters

context
Context

The Context of the caller. This may be null if <var>intent</var> is also null.

code
Result

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

intent
Intent

Additional Intent data. See Intent#fillIn Intent.fillIn() for information on how this is applied to the original Intent. Use null to not modify the original Intent.

onFinished
IntentSender.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 CanceledIntentException if the IntentSender is no longer allowing more intents to be sent through it.

Remarks

Java documentation for android.content.IntentSender.sendIntent(android.content.Context, int, android.content.Intent, android.content.OnFinished, android.os.Handler).

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