ForegroundTerminationMetric
A metric that counts app terminations from the foreground by category.
Declaration
struct ForegroundTerminationMetricDiscussion
This metric corresponds to the MetricResult.foregroundTermination(_:) case. It appears in both intervalEntries and stateEntries when state reporting is enabled.
Foreground exits are user-visible terminations; when unexpected, they directly interrupt usage. Not all exits are unexpected — normal exits such as the user quitting the app from the switcher appear in normalTerminationCount.
Use terminationCategory to correlate individual crash diagnostics with these aggregate counts.