PackageManager.QueryIntentActivityOptions(ComponentName, Intent[], Intent, PackageInfoFlags) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
[<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")>]
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 to modify the data returned. The
most important is #MATCH_DEFAULT_ONLY, to limit the
resolution to only those activities that support the
android.content.Intent#CATEGORY_DEFAULT.
Returns
Returns a List of ResolveInfo objects containing one entry for each matching activity. The list is ordered first by all of the intents resolved in <var>specifics</var> and then any additional activities that can handle <var>intent</var> but did not get included by one of the <var>specifics</var> intents. If there are no matching activities, an empty list is returned.
- 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.