PackageManager.QueryIntentContentProviders(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 all providers that can match the given intent.
[Android.Runtime.Register("queryIntentContentProviders", "(Landroid/content/Intent;I)Ljava/util/List;", "GetQueryIntentContentProviders_Landroid_content_Intent_IHandler")]
public abstract System.Collections.Generic.IList<Android.Content.PM.ResolveInfo> QueryIntentContentProviders (Android.Content.Intent intent, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("queryIntentContentProviders", "(Landroid/content/Intent;I)Ljava/util/List;", "GetQueryIntentContentProviders_Landroid_content_Intent_IHandler")>]
abstract member QueryIntentContentProviders : Android.Content.Intent * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>
Parameters
- intent
- Intent
An intent containing all of the desired specification (action, data, type, category, and/or component).
- flags
- PackageInfoFlags
Additional option flags to modify the data returned.
Returns
Returns a List of ResolveInfo objects containing one entry for each matching provider, ordered from best to worst. If there are no matching services, an empty list or null 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.