StorageStatsManager.QueryExternalStatsForUser(UUID, UserHandle) Method

Definition

Return shared/external storage statistics for a specific UserHandle on the requested storage volume.

[Android.Runtime.Register("queryExternalStatsForUser", "(Ljava/util/UUID;Landroid/os/UserHandle;)Landroid/app/usage/ExternalStorageStats;", "GetQueryExternalStatsForUser_Ljava_util_UUID_Landroid_os_UserHandle_Handler", ApiSince=26)]
public virtual Android.App.Usage.ExternalStorageStats QueryExternalStatsForUser (Java.Util.UUID storageUuid, Android.OS.UserHandle user);
[<Android.Runtime.Register("queryExternalStatsForUser", "(Ljava/util/UUID;Landroid/os/UserHandle;)Landroid/app/usage/ExternalStorageStats;", "GetQueryExternalStatsForUser_Ljava_util_UUID_Landroid_os_UserHandle_Handler", ApiSince=26)>]
abstract member QueryExternalStatsForUser : Java.Util.UUID * Android.OS.UserHandle -> Android.App.Usage.ExternalStorageStats
override this.QueryExternalStatsForUser : Java.Util.UUID * Android.OS.UserHandle -> Android.App.Usage.ExternalStorageStats

Parameters

storageUuid
UUID

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

user
UserHandle

Returns

Attributes

Remarks

Return shared/external storage statistics for a specific UserHandle on the requested storage volume. <p class="note"> Note: this API requires the android.Manifest.permission#PACKAGE_USAGE_STATS permission, which is a system-level permission that will not be granted to normal apps. Declaring that permission expresses your intention to use this API and an end user can then choose to grant this permission through the Settings application. </p>

Java documentation for android.app.usage.StorageStatsManager.queryExternalStatsForUser(java.util.UUID, android.os.UserHandle).

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