Activity.StartIntentSenderForResult Method

Definition

Overloads

StartIntentSenderForResult(IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32)

Same as calling #startIntentSenderForResult(IntentSender, int, Intent, int, int, int, Bundle) with no options.

StartIntentSenderForResult(IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32, Bundle)

Like #startActivityForResult(Intent, int), but allowing you to use a IntentSender to describe the activity to be started.

StartIntentSenderForResult(IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32)

Same as calling #startIntentSenderForResult(IntentSender, int, Intent, int, int, int, Bundle) with no options.

[Android.Runtime.Register("startIntentSenderForResult", "(Landroid/content/IntentSender;ILandroid/content/Intent;III)V", "GetStartIntentSenderForResult_Landroid_content_IntentSender_ILandroid_content_Intent_IIIHandler")]
public virtual void StartIntentSenderForResult (Android.Content.IntentSender? intent, int requestCode, Android.Content.Intent? fillInIntent, Android.Content.ActivityFlags flagsMask, Android.Content.ActivityFlags flagsValues, int extraFlags);
[<Android.Runtime.Register("startIntentSenderForResult", "(Landroid/content/IntentSender;ILandroid/content/Intent;III)V", "GetStartIntentSenderForResult_Landroid_content_IntentSender_ILandroid_content_Intent_IIIHandler")>]
abstract member StartIntentSenderForResult : Android.Content.IntentSender * int * Android.Content.Intent * Android.Content.ActivityFlags * Android.Content.ActivityFlags * int -> unit
override this.StartIntentSenderForResult : Android.Content.IntentSender * int * Android.Content.Intent * Android.Content.ActivityFlags * Android.Content.ActivityFlags * int -> unit

Parameters

intent
IntentSender

The IntentSender to launch.

requestCode
Int32

If >= 0, this code will be returned in onActivityResult() when the activity exits.

fillInIntent
Intent

If non-null, this will be provided as the intent parameter to IntentSender#sendIntent.

flagsMask
ActivityFlags

Intent flags in the original IntentSender that you would like to change.

flagsValues
ActivityFlags

Desired values for any bits set in <var>flagsMask</var>

extraFlags
Int32

Always set to 0.

Attributes

Exceptions

Remarks

Same as calling #startIntentSenderForResult(IntentSender, int, Intent, int, int, int, Bundle) with no options.

Java documentation for android.app.Activity.startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, 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.

Applies to

StartIntentSenderForResult(IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32, Bundle)

Like #startActivityForResult(Intent, int), but allowing you to use a IntentSender to describe the activity to be started.

[Android.Runtime.Register("startIntentSenderForResult", "(Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V", "GetStartIntentSenderForResult_Landroid_content_IntentSender_ILandroid_content_Intent_IIILandroid_os_Bundle_Handler")]
public virtual void StartIntentSenderForResult (Android.Content.IntentSender? intent, int requestCode, Android.Content.Intent? fillInIntent, Android.Content.ActivityFlags flagsMask, Android.Content.ActivityFlags flagsValues, int extraFlags, Android.OS.Bundle? options);
[<Android.Runtime.Register("startIntentSenderForResult", "(Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V", "GetStartIntentSenderForResult_Landroid_content_IntentSender_ILandroid_content_Intent_IIILandroid_os_Bundle_Handler")>]
abstract member StartIntentSenderForResult : Android.Content.IntentSender * int * Android.Content.Intent * Android.Content.ActivityFlags * Android.Content.ActivityFlags * int * Android.OS.Bundle -> unit
override this.StartIntentSenderForResult : Android.Content.IntentSender * int * Android.Content.Intent * Android.Content.ActivityFlags * Android.Content.ActivityFlags * int * Android.OS.Bundle -> unit

Parameters

intent
IntentSender

The IntentSender to launch.

requestCode
Int32

If >= 0, this code will be returned in onActivityResult() when the activity exits.

fillInIntent
Intent

If non-null, this will be provided as the intent parameter to IntentSender#sendIntent.

flagsMask
ActivityFlags

Intent flags in the original IntentSender that you would like to change.

flagsValues
ActivityFlags

Desired values for any bits set in <var>flagsMask</var>

extraFlags
Int32

Always set to 0.

options
Bundle

Additional options for how the Activity should be started. See android.content.Context#startActivity(Intent, Bundle) Context.startActivity(Intent, Bundle)} for more details. If options have also been supplied by the IntentSender, options given here will override any that conflict with those given by the IntentSender.

Attributes

Exceptions

Remarks

Like #startActivityForResult(Intent, int), but allowing you to use a IntentSender to describe the activity to be started. If the IntentSender is for an activity, that activity will be started as if you had called the regular #startActivityForResult(Intent, int) here; otherwise, its associated action will be executed (such as sending a broadcast) as if you had called IntentSender#sendIntent IntentSender.sendIntent on it.

Java documentation for android.app.Activity.startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int, 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