One Logo Pool Ball
MetricKit · IOS API REFERENCE

TotalForegroundTimeMetric

struct · iOS 27.0+ · SDK 27.1

struct TotalForegroundTimeMetric

A metric for total foreground time.

Members (1)

get · iOS 27.0+

value

TypeScript
get value(): _Foundation_Measurement<_Foundation_UnitDuration>
Swift declaration
let value: Measurement<UnitDuration>

The total time the app is in the foreground.

Skipped declarations

No declarations were skipped in this snapshot.

All MetricKit types →