public final class StorageVolumeBuilder
extends java.lang.Object
Class to build StorageVolume
Constructor and Description |
---|
StorageVolumeBuilder(java.lang.String id,
java.io.File path,
java.lang.String description,
android.os.UserHandle owner,
java.lang.String state) |
Modifier and Type | Method and Description |
---|---|
android.os.storage.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(java.lang.String id, java.io.File path, java.lang.String description, android.os.UserHandle owner, java.lang.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 android.os.storage.StorageVolume build() throws java.lang.IllegalStateException
java.lang.IllegalStateException