Java android.os.storage StorageVolume fields, constructors, methods, implement or subclass

Example usage for Java android.os.storage StorageVolume fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.os.storage StorageVolume.

The text is from its open source code.

Field

StringEXTRA_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 .

Method

booleanallowMassStorage()
Returns true if this volume can be shared via USB mass storage.
IntentcreateAccessIntent(String directoryName)
Builds an intent to give access to a standard storage directory or entire volume after obtaining the user's approval.
booleanequals(Object obj)
StringgetDescription(Context context)
Returns a user-visible description of the volume.
UserHandlegetOwner()
StringgetPath()
Returns the mount path for the volume.
booleanisEmulated()
Returns true if the volume is emulated.
booleanisPrimary()
Returns true if the volume is the primary shared/external storage, which is the volume backed by Environment#getExternalStorageDirectory() .