PackageManager.QueryIntentActivityOptions(ComponentName, Intent[], Intent, PackageInfoFlags) Method

Definition

Retrieve a set of activities that should be presented to the user as similar options.

[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 abstract System.Collections.Generic.IList<Android.Content.PM.ResolveInfo> QueryIntentActivityOptions (Android.Content.ComponentName caller, Android.Content.Intent[] specifics, Android.Content.Intent intent, Android.Content.PM.PackageInfoFlags flags);
abstract member QueryIntentActivityOptions : Android.Content.ComponentName * Android.Content.Intent[] * Android.Content.Intent * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>

Parameters

caller
ComponentName

The class name of the activity that is making the request. This activity will never appear in the output list. Can be null.

specifics
Intent[]

An array of Intents that should be resolved to the first specific results. Can be null.

intent
Intent

The desired intent as per resolveActivity().

flags
PackageInfoFlags

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 CategoryDefault.

Returns

IList<ResolveInfo>
Attributes

Remarks

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