public final class StorageVolumeBuilder extends Object
Class to build StorageVolume
Constructor and Description |
---|
StorageVolumeBuilder(String id,
File path,
String description,
UserHandle owner,
String state) |
Modifier and Type | Method and Description |
---|---|
StorageVolume |
build() |
void |
setAllowMassStorage(boolean allowMassStorage) |
void |
setIsEmulated(boolean isEmulated) |
void |
setIsPrimary(boolean isPrimary) |
void |
setIsRemovable(boolean isRemovable) |
void |
setMaxFileSize(long maxFileSize) |
void |
setMtpReserveSize(long mtpReserveSize) |
void |
setStorageId(int storageId) |
public StorageVolumeBuilder(String id, File path, String description, UserHandle owner, String state)
public void setStorageId(int storageId)
public void setIsPrimary(boolean isPrimary)
public void setIsRemovable(boolean isRemovable)
public void setIsEmulated(boolean isEmulated)
public void setMtpReserveSize(long mtpReserveSize)
public void setAllowMassStorage(boolean allowMassStorage)
public void setMaxFileSize(long maxFileSize)
public StorageVolume build() throws IllegalStateException
IllegalStateException