Android.Test.Mock.MockContext.StartIntentSender Method
Like Android.Content.Context.StartActivity(Android.Content.Intent, Android.OS.Bundle), but taking a IntentSender to start.

Syntax

[Android.Runtime.Register("startIntentSender", "(Landroid/content/IntentSender;Landroid/content/Intent;IIILandroid/os/Bundle;)V", "GetStartIntentSender_Landroid_content_IntentSender_Landroid_content_Intent_IIILandroid_os_Bundle_Handler")]
public override void StartIntentSender (Android.Content.IntentSender intent, 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.
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 Android.Content.Context.StartActivity(Android.Content.Intent, Android.OS.Bundle), but taking a IntentSender to start. If the IntentSender is for an activity, that activity will be started as if you had called the regular Android.Content.Context.StartActivity(Android.Content.Intent) 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.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16