Share via


Environment.InvokeIsExternalStorageManager(File) Method

Definition

Returns whether the calling app has All Files Access at the given path

[Android.Runtime.Register("isExternalStorageManager", "(Ljava/io/File;)Z", "", ApiSince=30)]
public static bool InvokeIsExternalStorageManager (Java.IO.File path);
[<Android.Runtime.Register("isExternalStorageManager", "(Ljava/io/File;)Z", "", ApiSince=30)>]
static member InvokeIsExternalStorageManager : Java.IO.File -> bool

Parameters

path
File

Returns

Attributes

Remarks

Returns whether the calling app has All Files Access at the given path

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

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

Java documentation for android.os.Environment.isExternalStorageManager(java.io.File).

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