Udostępnij za pośrednictwem


Environment.ExternalStorageState Property

Definition

Returns the current state of the primary shared/external storage media.

public static string? ExternalStorageState { [Android.Runtime.Register("getExternalStorageState", "()Ljava/lang/String;", "")] get; }
[<get: Android.Runtime.Register("getExternalStorageState", "()Ljava/lang/String;", "")>]
static member ExternalStorageState : string

Property Value

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 primary shared/external storage media.

Java documentation for android.os.Environment.getExternalStorageState().

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

See also