StorageVolume.State Property

Definition

Returns the current state of the volume.

public string? State { [Android.Runtime.Register("getState", "()Ljava/lang/String;", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getState", "()Ljava/lang/String;", "", ApiSince=24)>]
member this.State : string

Property Value

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

Attributes

Remarks

Returns the current state of the volume.

Java documentation for android.os.storage.StorageVolume.getState().

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