public final class StorageVolumeBuilder extends Object
StorageVolume
Constructor | Description |
---|---|
StorageVolumeBuilder(String id,
File path,
String description,
UserHandle owner,
String state) |
Modifier and Type | Method | 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