Versions in this module Expand all Collapse all v2 v2.19.0 Oct 2, 2026 Changes in this version + const ForegroundGraceMs + const PolicyVersion + type ForegroundEvent struct + Kind ForegroundKind + TimestampMs int64 + type ForegroundKind string + const KeyguardHidden + const KeyguardShown + const OtherResumed + const ScreenInteractive + const ScreenNonInteractive + const TargetPaused + const TargetResumed + const TargetStopped + type ForegroundResult struct + ClosedMs int64 + Confirmed bool + ConfirmedMs int64 + OpenStartMs int64 + Segments []ForegroundSegment + Status string + func ReconcileForeground(requestedMs, queryEndMs, hardCloseAtMs int64, events []ForegroundEvent) (ForegroundResult, error) + func (r ForegroundResult) ClosedDurationMs() int64 + type ForegroundSegment struct + EndMs int64 + StartMs int64