Language

IntentSender.SendIntent Method

Definition

Overloads

Name Description
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, String, Bundle, IExecutor, IntentSender+IOnFinished)

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

SendIntent(Context, Result, Intent, String, Bundle, IExecutor, IntentSender+IOnFinished)

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;Ljava/lang/String;Landroid/os/Bundle;Ljava/util/concurrent/Executor;Landroid/content/IntentSender$OnFinished;)V", "GetSendIntent_Landroid_content_Context_ILandroid_content_Intent_Ljava_lang_String_Landroid_os_Bundle_Ljava_util_concurrent_Executor_Landroid_content_IntentSender_OnFinished_Handler", ApiSince=36)]
public virtual void SendIntent(Android.Content.Context? context, Android.App.Result code, Android.Content.Intent? intent, string? requiredPermission, Android.OS.Bundle? options, Java.Util.Concurrent.IExecutor? executor, Android.Content.IntentSender.IOnFinished? onFinished);
[<Android.Runtime.Register("sendIntent", "(Landroid/content/Context;ILandroid/content/Intent;Ljava/lang/String;Landroid/os/Bundle;Ljava/util/concurrent/Executor;Landroid/content/IntentSender$OnFinished;)V", "GetSendIntent_Landroid_content_Context_ILandroid_content_Intent_Ljava_lang_String_Landroid_os_Bundle_Ljava_util_concurrent_Executor_Landroid_content_IntentSender_OnFinished_Handler", ApiSince=36)>]
abstract member SendIntent : Android.Content.Context * Android.App.Result * Android.Content.Intent * string * Android.OS.Bundle * Java.Util.Concurrent.IExecutor * Android.Content.IntentSender.IOnFinished -> unit
override this.SendIntent : Android.Content.Context * Android.App.Result * Android.Content.Intent * string * Android.OS.Bundle * Java.Util.Concurrent.IExecutor * Android.Content.IntentSender.IOnFinished -> 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 IntentSender's target.

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.

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

options
Bundle

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

executor
IExecutor

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

onFinished
IntentSender.IOnFinished

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

Attributes

Remarks

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.

Java documentation for android.content.IntentSender.sendIntent(android.content.Context, int, android.content.Intent, java.lang.String, android.os.Bundle, java.util.concurrent.Executor, android.content.IntentSender.OnFinished).

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