Freigeben über


SystemHealthManager.TakeUidSnapshots(Int32[]) Method

Definition

Return a HealthStats object containing a snapshot of system health metrics for the given uids (user-id, which in usually corresponds to application).

[Android.Runtime.Register("takeUidSnapshots", "([I)[Landroid/os/health/HealthStats;", "GetTakeUidSnapshots_arrayIHandler", ApiSince=24)]
public virtual Android.OS.Health.HealthStats[]? TakeUidSnapshots (int[]? uids);
[<Android.Runtime.Register("takeUidSnapshots", "([I)[Landroid/os/health/HealthStats;", "GetTakeUidSnapshots_arrayIHandler", ApiSince=24)>]
abstract member TakeUidSnapshots : int[] -> Android.OS.Health.HealthStats[]
override this.TakeUidSnapshots : int[] -> Android.OS.Health.HealthStats[]

Parameters

uids
Int32[]

An array of User IDs to retrieve.

Returns

An array of HealthStats objects containing the metrics for each of the requested uids. The keys for this HealthStats object will be from the UidHealthStats class.

Attributes

Remarks

Return a HealthStats object containing a snapshot of system health metrics for the given uids (user-id, which in usually corresponds to application).

Java documentation for android.os.health.SystemHealthManager.takeUidSnapshots(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