EnvironmentCompat
public
final
class
EnvironmentCompat
extends Object
java.lang.Object | |
↳ | androidx.core.os.EnvironmentCompat |
Helper for accessing features in Environment
.
Summary
Constants | |
---|---|
String |
MEDIA_UNKNOWN
Unknown storage state, such as when a path isn't backed by known storage media. |
Public methods | |
---|---|
static
String
|
getStorageState(File path)
Returns the current state of the storage device that provides the given path. |
Inherited methods | |
---|---|
Constants
MEDIA_UNKNOWN
public static final String MEDIA_UNKNOWN
Unknown storage state, such as when a path isn't backed by known storage media.
See also:
Constant Value: "unknown"
Public methods
getStorageState
public static String getStorageState (File path)
Returns the current state of the storage device that provides the given path.
Parameters | |
---|---|
path |
File |