EnvironmentCompat
class EnvironmentCompat
kotlin.Any | |
↳ | androidx.core.os.EnvironmentCompat |
Helper for accessing features in Environment
.
Summary
Constants | |
---|---|
static String |
Unknown storage state, such as when a path isn't backed by known storage media. |
Public methods | |
---|---|
static String |
getStorageState(@NonNull path: File) Returns the current state of the storage device that provides the given path. |
Constants
MEDIA_UNKNOWN
static val MEDIA_UNKNOWN: String
Unknown storage state, such as when a path isn't backed by known storage media.
Value: "unknown"
See Also
Public methods
getStorageState
@NonNull static fun getStorageState(@NonNull path: File): String
Returns the current state of the storage device that provides the given path.