EnvironmentCompat
class EnvironmentCompat
Helper for accessing features in Environment.
Summary
Constants |
|
|---|---|
const String! |
MEDIA_UNKNOWN = "unknown"This property is deprecated. Use |
Public functions |
|
|---|---|
java-static String |
getStorageState(path: File)Returns the current state of the storage device that provides the given path. |
Constants
const val MEDIA_UNKNOWN = "unknown": String!
Unknown storage state, such as when a path isn't backed by known storage media.
| See also | |
|---|---|
getStorageState |
Public functions
getStorageState
Added in 1.1.0
java-static fun getStorageState(path: File): String
Returns the current state of the storage device that provides the given path.