EnvironmentCompat
public final class EnvironmentCompat
Helper for accessing features in Environment.
Summary
Constants |
|
|---|---|
static final String |
MEDIA_UNKNOWN = "unknown"This field is deprecated. Use |
Public methods |
|
|---|---|
static @NonNull String |
getStorageState(@NonNull File path)Returns the current state of the storage device that provides the given path. |
Constants
public static final String MEDIA_UNKNOWN = "unknown"
Unknown storage state, such as when a path isn't backed by known storage media.
| See also | |
|---|---|
getStorageState |
Public methods
getStorageState
Added in 1.1.0
public static @NonNull String getStorageState(@NonNull File path)
Returns the current state of the storage device that provides the given path.
| Returns | |
|---|---|
@NonNull String |
one of |