Share via


MediaStore.IsCurrentSystemGallery(ContentResolver, Int32, String) Method

Definition

Returns true if the given application is the current system gallery of the device.

[Android.Runtime.Register("isCurrentSystemGallery", "(Landroid/content/ContentResolver;ILjava/lang/String;)Z", "", ApiSince=31)]
public static bool IsCurrentSystemGallery (Android.Content.ContentResolver resolver, int uid, string packageName);
[<Android.Runtime.Register("isCurrentSystemGallery", "(Landroid/content/ContentResolver;ILjava/lang/String;)Z", "", ApiSince=31)>]
static member IsCurrentSystemGallery : Android.Content.ContentResolver * int * string -> bool

Parameters

resolver
ContentResolver

The ContentResolver used to connect with MediaStore#AUTHORITY. Typically this value is Context#getContentResolver().

uid
Int32

The uid to be checked if it is the current system gallery.

packageName
String

The package name to be checked if it is the current system gallery.

Returns

Attributes

Remarks

Returns true if the given application is the current system gallery of the device.

The system gallery is one app chosen by the OEM that has read & write access to all photos and videos on the device and control over folders in media collections.

Java documentation for android.provider.MediaStore.isCurrentSystemGallery(android.content.ContentResolver, int, java.lang.String).

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