Language

Activity.StartIntentSenderForResult Method

Definition

Overloads

Name Description
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

IntentSender: The IntentSender to launch.

requestCode
Int32

int: If >= 0, this code will be returned in onActivityResult() when the activity exits; If < 0, no result will return when the activity exits.

fillInIntent
Intent

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

flagsMask
ActivityFlags

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

flagsValues
ActivityFlags

int: Desired values for any bits set in flagsMask

extraFlags
Int32

int: Always set to 0.

Attributes

Remarks

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

Throws: IntentSender.SendIntentException

Android reference for android.app.Activity.startIntentSenderForResult.

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

IntentSender: The IntentSender to launch.

requestCode
Int32

int: If >= 0, this code will be returned in onActivityResult() when the activity exits; If < 0, no result will return when the activity exits.

fillInIntent
Intent

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

flagsMask
ActivityFlags

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

flagsValues
ActivityFlags

int: Desired values for any bits set in flagsMask

extraFlags
Int32

int: Always set to 0.

options
Bundle

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. This value may be null.

Attributes

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 on it.

Throws: IntentSender.SendIntentException

Android reference for android.app.Activity.startIntentSenderForResult.

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