Share via


StorageStatsManager.GetTotalBytes(UUID) Method

Definition

Return the total size of the underlying physical media that is hosting this storage volume.

[Android.Runtime.Register("getTotalBytes", "(Ljava/util/UUID;)J", "GetGetTotalBytes_Ljava_util_UUID_Handler", ApiSince=26)]
public virtual long GetTotalBytes (Java.Util.UUID storageUuid);
[<Android.Runtime.Register("getTotalBytes", "(Ljava/util/UUID;)J", "GetGetTotalBytes_Ljava_util_UUID_Handler", ApiSince=26)>]
abstract member GetTotalBytes : Java.Util.UUID -> int64
override this.GetTotalBytes : 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 total size of the underlying physical media that is hosting this storage volume.

This value is best suited for visual display to end users, since it's designed to reflect the total storage size advertised in a retail environment.

Apps making logical decisions about disk space should always use File#getTotalSpace() instead of this value.

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