<!--
{
  "availability" : [
    "iOS: 14.0.0 - 27.0.0",
    "iPadOS: 14.0.0 - 27.0.0",
    "macCatalyst: 14.0.0 - 27.0.0",
    "macOS: 11.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/MXAppExitMetric",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MXAppExitMetric"
  },
  "title" : "MXAppExitMetric"
}
-->

# MXAppExitMetric

An object representing metrics about the types of foreground and background app exits.

```
class MXAppExitMetric
```

## Topics

### Reading the foreground exit data

[`foregroundExitData`](/documentation/MetricKit/MXAppExitMetric/foregroundExitData)

The metrics for the foreground app exits.

[`MXForegroundExitData`](/documentation/MetricKit/MXForegroundExitData)

An object representing counts for the different types of foreground app exits.

### Reading the background exit data

[`backgroundExitData`](/documentation/MetricKit/MXAppExitMetric/backgroundExitData)

The metrics for the background app exits.

[`MXBackgroundExitData`](/documentation/MetricKit/MXBackgroundExitData)

An object representing counts for the different types of background app exits.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)