MockPackageManager.QueryContentProviders Method

Definition

Retrieve content provider information.

[Android.Runtime.Register("queryContentProviders", "(Ljava/lang/String;II)Ljava/util/List;", "GetQueryContentProviders_Ljava_lang_String_IIHandler")]
public override System.Collections.Generic.IList<Android.Content.PM.ProviderInfo>? QueryContentProviders (string? processName, int uid, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("queryContentProviders", "(Ljava/lang/String;II)Ljava/util/List;", "GetQueryContentProviders_Ljava_lang_String_IIHandler")>]
override this.QueryContentProviders : string * int * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ProviderInfo>

Parameters

processName
String

If non-null, limits the returned providers to only those that are hosted by the given process. If null, all content providers are returned.

uid
Int32

If processName is non-null, this is the required uid owning the requested content providers.

flags
PackageInfoFlags

Additional option flags. Currently should always be 0.

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