MockPackageManager.QueryIntentActivities(Intent, PackageInfoFlags) Method

Definition

Retrieve all activities that can be performed for the given intent.

[Android.Runtime.Register("queryIntentActivities", "(Landroid/content/Intent;I)Ljava/util/List;", "GetQueryIntentActivities_Landroid_content_Intent_IHandler")]
public override System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>? QueryIntentActivities (Android.Content.Intent? intent, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("queryIntentActivities", "(Landroid/content/Intent;I)Ljava/util/List;", "GetQueryIntentActivities_Landroid_content_Intent_IHandler")>]
override this.QueryIntentActivities : Android.Content.Intent * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>

Parameters

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.

You can also set Android.Content.PM.PackageManager.MATCH_ALL for preventing the filtering of the results.

Returns

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