Freigeben über


MediaStore.CanManageMedia(Context) Method

Definition

Returns whether the calling app is granted android.Manifest.permission#MANAGE_MEDIA or not.

[Android.Runtime.Register("canManageMedia", "(Landroid/content/Context;)Z", "", ApiSince=31)]
public static bool CanManageMedia (Android.Content.Context context);
[<Android.Runtime.Register("canManageMedia", "(Landroid/content/Context;)Z", "", ApiSince=31)>]
static member CanManageMedia : Android.Content.Context -> bool

Parameters

context
Context

the request context

Returns

true, the calling app is granted the permission. Otherwise, false

Attributes

Remarks

Returns whether the calling app is granted android.Manifest.permission#MANAGE_MEDIA or not.

Declaring the permission android.Manifest.permission#MANAGE_MEDIA isn't enough to gain the access.

To request access, use android.provider.Settings#ACTION_REQUEST_MANAGE_MEDIA.

Java documentation for android.provider.MediaStore.canManageMedia(android.content.Context).

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