Android.App.Activity.StartIntentSenderForResult Method
Like Activity.StartActivityForResult(Android.Content.Intent, System.Int32), but allowing you to use a IntentSender to describe the activity to be started.

Syntax

[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.Runtime.GeneratedEnum] Android.Content.ActivityFlags flagsMask, [Android.Runtime.GeneratedEnum] Android.Content.ActivityFlags flagsValues, int extraFlags, Android.OS.Bundle options)

Parameters

intent
The IntentSender to launch.
requestCode
If >= 0, this code will be returned in onActivityResult() when the activity exits.
fillInIntent
If non-null, this will be provided as the intent parameter to Android.Content.IntentSender.SendIntent(Android.Content.Context, Android.App.Result, Android.App.Result, Android.App.Result, Android.App.Result).
flagsMask
Intent flags in the original IntentSender that you would like to change.
flagsValues
Desired values for any bits set in flagsMask
extraFlags
Always set to 0.
options
Additional options for how the Activity should be started. See Android.Content.Context.StartActivity(Android.Content.Intent, Android.OS.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.

Exceptions

TypeReason
!:NoType:android/content/IntentSender$SendIntentException;Href=../../../reference/android/content/IntentSender.SendIntentException.html

Remarks

Like Activity.StartActivityForResult(Android.Content.Intent, System.Int32), 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 Activity.StartActivityForResult(Android.Content.Intent, System.Int32) here; otherwise, its associated action will be executed (such as sending a broadcast) as if you had called Android.Content.IntentSender.SendIntent(Android.Content.Context, Android.App.Result, Android.App.Result, Android.App.Result, Android.App.Result) on it.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16