EnvironmentCompat

public final class EnvironmentCompat


Helper for accessing features in Environment.

Summary

Constants

static final String

Unknown storage state, such as when a path isn't backed by known storage media.

Public constructors

Public methods

static @NonNull String

Returns the current state of the storage device that provides the given path.

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
getStorageState

Public constructors

EnvironmentCompat

public final EnvironmentCompat()

Public methods

getStorageState

public static @NonNull String getStorageState(@NonNull File path)

Returns the current state of the storage device that provides the given path.