StorageStatsManager.QueryStatsForUid(UUID, Int32) Method

Definition

Return storage statistics for a specific UID on the requested storage volume.

[Android.Runtime.Register("queryStatsForUid", "(Ljava/util/UUID;I)Landroid/app/usage/StorageStats;", "GetQueryStatsForUid_Ljava_util_UUID_IHandler", ApiSince=26)]
public virtual Android.App.Usage.StorageStats QueryStatsForUid (Java.Util.UUID storageUuid, int uid);
[<Android.Runtime.Register("queryStatsForUid", "(Ljava/util/UUID;I)Landroid/app/usage/StorageStats;", "GetQueryStatsForUid_Ljava_util_UUID_IHandler", ApiSince=26)>]
abstract member QueryStatsForUid : Java.Util.UUID * int -> Android.App.Usage.StorageStats
override this.QueryStatsForUid : Java.Util.UUID * int -> Android.App.Usage.StorageStats

Parameters

storageUuid
UUID

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

uid
Int32

the UID you're interested in.

Returns

Attributes

Remarks

Return storage statistics for a specific UID on the requested storage volume. <p class="note"> Note: no permissions are required when calling this API for your own UID. However, requesting details for any other UID 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.queryStatsForUid(java.util.UUID, int).

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