Compartilhar via


Environment.GetExternalStorageState(File) Method

Definition

Returns the current state of the shared/external storage media at the given path.

[Android.Runtime.Register("getExternalStorageState", "(Ljava/io/File;)Ljava/lang/String;", "")]
public static string? GetExternalStorageState (Java.IO.File? path);
[<Android.Runtime.Register("getExternalStorageState", "(Ljava/io/File;)Ljava/lang/String;", "")>]
static member GetExternalStorageState : Java.IO.File -> string

Parameters

path
File

Returns

one of #MEDIA_UNKNOWN, #MEDIA_REMOVED, #MEDIA_UNMOUNTED, #MEDIA_CHECKING, #MEDIA_NOFS, #MEDIA_MOUNTED, #MEDIA_MOUNTED_READ_ONLY, #MEDIA_SHARED, #MEDIA_BAD_REMOVAL, or #MEDIA_UNMOUNTABLE.

Attributes

Remarks

Returns the current state of the shared/external storage media at the given path.

Java documentation for android.os.Environment.getExternalStorageState(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