Sdílet prostřednictvím


StorageStatsManager.GetFreeBytes(UUID) Method

Definition

Return the free space on the requested storage volume.

[Android.Runtime.Register("getFreeBytes", "(Ljava/util/UUID;)J", "GetGetFreeBytes_Ljava_util_UUID_Handler", ApiSince=26)]
public virtual long GetFreeBytes (Java.Util.UUID storageUuid);
[<Android.Runtime.Register("getFreeBytes", "(Ljava/util/UUID;)J", "GetGetFreeBytes_Ljava_util_UUID_Handler", ApiSince=26)>]
abstract member GetFreeBytes : Java.Util.UUID -> int64
override this.GetFreeBytes : Java.Util.UUID -> int64

Parameters

storageUuid
UUID

the UUID of the storage volume you're interested in, such as StorageManager#UUID_DEFAULT.

Returns

Attributes

Remarks

Return the free space on the requested storage volume.

This value is best suited for visual display to end users, since it's designed to reflect both unused space <em>and</em> and cached space that could be reclaimed by the system.

Apps making logical decisions about disk space should always use StorageManager#getAllocatableBytes(UUID) instead of this value.

Java documentation for android.app.usage.StorageStatsManager.getFreeBytes(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.

Applies to