Android.Test.Mock.MockPackageManager.QueryIntentActivityOptions Method
Retrieve a set of activities that should be presented to the user as similar options.

Syntax

[Android.Runtime.Register("queryIntentActivityOptions", "(Landroid/content/ComponentName;[Landroid/content/Intent;Landroid/content/Intent;I)Ljava/util/List;", "GetQueryIntentActivityOptions_Landroid_content_ComponentName_arrayLandroid_content_Intent_Landroid_content_Intent_IHandler")]
public override IList<Android.Content.PM.ResolveInfo> QueryIntentActivityOptions (Android.Content.ComponentName caller, Android.Content.Intent[] specifics, Android.Content.Intent intent, [Android.Runtime.GeneratedEnum] Android.Content.PM.PackageInfoFlags flags)

Parameters

caller
The class name of the activity that is making the request. This activity will never appear in the output list. Can be null.
specifics
An array of Intents that should be resolved to the first specific results. Can be null.
intent
The desired intent as per resolveActivity().
flags
Additional option flags. The most important is Android.Content.PM.PackageManager.MATCH_DEFAULT_ONLY, to limit the resolution to only those activities that support the Android.Content.Intent.CategoryDefault.

Returns

Documentation for this section has not yet been entered.

Remarks

Retrieve a set of activities that should be presented to the user as similar options. This is like Android.Content.PM.PackageManager.QueryIntentActivities(Android.Content.Intent, Android.Content.PM.PackageInfoFlags), except it also allows you to supply a list of more explicit Intents that you would like to resolve to particular options, and takes care of returning the final ResolveInfo list in a reasonable order, with no duplicates, based on those inputs.

[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 1