Contents

TotalForegroundTimeMetric

A metric that measures the total time the app spent in the foreground.

Declaration

struct TotalForegroundTimeMetric

Discussion

This metric corresponds to the MetricResult.totalForegroundTime(_:) case. It appears in both intervalEntries and stateEntries when state reporting is enabled.

This type replaces the cumulativeForegroundTime property of MXAppRunTimeMetric.

Topics

Measurements

See Also

Time-in-use metrics