Sdílet prostřednictvím


SystemHealthManager.TakeMyUidSnapshot Method

Definition

Return a HealthStats object containing a snapshot of system health metrics for the application calling this API.

[Android.Runtime.Register("takeMyUidSnapshot", "()Landroid/os/health/HealthStats;", "GetTakeMyUidSnapshotHandler", ApiSince=24)]
public virtual Android.OS.Health.HealthStats? TakeMyUidSnapshot ();
[<Android.Runtime.Register("takeMyUidSnapshot", "()Landroid/os/health/HealthStats;", "GetTakeMyUidSnapshotHandler", ApiSince=24)>]
abstract member TakeMyUidSnapshot : unit -> Android.OS.Health.HealthStats
override this.TakeMyUidSnapshot : unit -> Android.OS.Health.HealthStats

Returns

A HealthStats object containing the metrics for this 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 application calling this API. This method is the same as calling takeUidSnapshot(Process.myUid()).

Java documentation for android.os.health.SystemHealthManager.takeMyUidSnapshot().

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