Freigeben über


SystemHealthManager.TakeUidSnapshot(Int32) Method

Definition

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

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

Parameters

uid
Int32

User ID for a given application.

Returns

A HealthStats object containing the metrics for the requested application. 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 uid (user-id, which in usually corresponds to application).

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