StorageManager.GetAllocatableBytes(UUID) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the maximum number of new bytes that your app can allocate for itself on the given storage volume.
[Android.Runtime.Register("getAllocatableBytes", "(Ljava/util/UUID;)J", "GetGetAllocatableBytes_Ljava_util_UUID_Handler", ApiSince=26)]
public virtual long GetAllocatableBytes (Java.Util.UUID storageUuid);
[<Android.Runtime.Register("getAllocatableBytes", "(Ljava/util/UUID;)J", "GetGetAllocatableBytes_Ljava_util_UUID_Handler", ApiSince=26)>]
abstract member GetAllocatableBytes : Java.Util.UUID -> int64
override this.GetAllocatableBytes : Java.Util.UUID -> int64
Parameters
- storageUuid
- UUID
the UUID of the storage volume where you're
considering allocating disk space, since allocatable space can
vary widely depending on the underlying storage device. The
UUID for a specific path can be obtained using
#getUuidForPath(File).
Returns
the maximum number of new bytes that the calling app can allocate
using #allocateBytes(UUID, long) or
#allocateBytes(FileDescriptor, long).
- Attributes
Remarks
Java documentation for android.os.storage.StorageManager.getAllocatableBytes(java.util.UUID).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.