FileDocCategorySizeDatePackage
MtpStorageInfo.javaAPI DocAndroid 5.1 API2282Thu Mar 12 22:22:30 GMT 2015android.mtp

MtpStorageInfo

public final class MtpStorageInfo extends Object
This class encapsulates information about a storage unit on an MTP device. This corresponds to the StorageInfo Dataset described in section 5.2.2 of the MTP specification.

Fields Summary
private int
mStorageId
private long
mMaxCapacity
private long
mFreeSpace
private String
mDescription
private String
mVolumeIdentifier
Constructors Summary
private MtpStorageInfo()

    
Methods Summary
public final java.lang.StringgetDescription()
Returns the description string for the storage unit. This is typically displayed to the user in the user interface on the MTP host.

return
the storage unit description

        return mDescription;
    
public final longgetFreeSpace()
Returns the amount of free space in the storage unit in bytes

return
the amount of free space

        return mFreeSpace;
    
public final longgetMaxCapacity()
Returns the maximum storage capacity for the storage unit in bytes

return
the maximum capacity

        return mMaxCapacity;
    
public final intgetStorageId()
Returns the storage ID for the storage unit. The storage ID uniquely identifies the storage unit on the MTP device.

return
the storage ID

        return mStorageId;
    
public final java.lang.StringgetVolumeIdentifier()
Returns the volume identifier for the storage unit

return
the storage volume identifier

        return mVolumeIdentifier;