Example usage for Java android.os.storage StorageVolume fields, constructors, methods, implement or subclass
The text is from its open source code.
String | EXTRA_STORAGE_VOLUME Name of the Parcelable extra in the Intent#ACTION_MEDIA_REMOVED , Intent#ACTION_MEDIA_UNMOUNTED , Intent#ACTION_MEDIA_CHECKING , Intent#ACTION_MEDIA_NOFS , Intent#ACTION_MEDIA_MOUNTED , Intent#ACTION_MEDIA_SHARED , Intent#ACTION_MEDIA_BAD_REMOVAL , Intent#ACTION_MEDIA_UNMOUNTABLE , and Intent#ACTION_MEDIA_EJECT broadcast that contains a StorageVolume . |
boolean | allowMassStorage() Returns true if this volume can be shared via USB mass storage. |
Intent | createAccessIntent(String directoryName) Builds an intent to give access to a standard storage directory or entire volume after obtaining the user's approval. |
boolean | equals(Object obj) |
String | getDescription(Context context) Returns a user-visible description of the volume. |
UserHandle | getOwner() |
String | getPath() Returns the mount path for the volume. |
boolean | isEmulated() Returns true if the volume is emulated. |
boolean | isPrimary() Returns true if the volume is the primary shared/external storage, which is the volume backed by Environment#getExternalStorageDirectory() . |