MediaStore.IsCurrentSystemGallery(ContentResolver, Int32, String) 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.
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.
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.