PackageManager.QueryIntentServices(Intent, PackageInfoFlags) Method

Definition

Retrieve all services that can match the given intent.

[Android.Runtime.Register("queryIntentServices", "(Landroid/content/Intent;I)Ljava/util/List;", "GetQueryIntentServices_Landroid_content_Intent_IHandler")]
public abstract System.Collections.Generic.IList<Android.Content.PM.ResolveInfo> QueryIntentServices (Android.Content.Intent intent, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("queryIntentServices", "(Landroid/content/Intent;I)Ljava/util/List;", "GetQueryIntentServices_Landroid_content_Intent_IHandler")>]
abstract member QueryIntentServices : Android.Content.Intent * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>

Parameters

intent
Intent

The desired intent as per resolveService().

flags
PackageInfoFlags

Additional option flags to modify the data returned.

Returns

IList<ResolveInfo>

Returns a List of ResolveInfo objects containing one entry for each matching service, ordered from best to worst. In other words, the first item is what would be returned by #resolveService. If there are no matching services, an empty list or null is returned.

Attributes

Remarks

Java documentation for android.content.pm.PackageManager.queryIntentServices(android.content.Intent, int).

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