Sdílet prostřednictvím


UsageStats.TotalTimeInForeground Property

Definition

Get the total time this package spent in the foreground, measured in milliseconds.

public long TotalTimeInForeground { [Android.Runtime.Register("getTotalTimeInForeground", "()J", "")] get; }
[<get: Android.Runtime.Register("getTotalTimeInForeground", "()J", "")>]
member this.TotalTimeInForeground : int64

Property Value

Attributes

Remarks

Get the total time this package spent in the foreground, measured in milliseconds. When in the foreground, the user is actively interacting with the app.

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

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