次の方法で共有


UsageStats.TotalTimeVisible Property

Definition

Get the total time this package's activity is visible in the UI, measured in milliseconds.

public long TotalTimeVisible { [Android.Runtime.Register("getTotalTimeVisible", "()J", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getTotalTimeVisible", "()J", "", ApiSince=29)>]
member this.TotalTimeVisible : int64

Property Value

Attributes

Remarks

Get the total time this package's activity is visible in the UI, measured in milliseconds. Note: An app may be visible but not considered foreground. Apps in the foreground must be visible, so visible time includes time in the foreground.

Java documentation for android.app.usage.UsageStats.getTotalTimeVisible().

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