<!--
{
  "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/MXBackgroundExitData",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MXBackgroundExitData"
  },
  "title" : "MXBackgroundExitData"
}
-->

# MXBackgroundExitData

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

```
class MXBackgroundExitData
```

## Topics

### Reading the Normal Exit Count

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

The number of times the app exited normally from the background.

### Reading the Abnormal Exit Count

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

The number of times the app exited abnormally from the background.

### Reading the System Termination Count

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

The number of times the system watchdog terminated the app from the background.

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

The number of times the system terminated the app from the background for using too much CPU time.

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

The number of times the system terminated the app from the background for using too much memory.

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

The number of times the system terminated the app from the background to free up memory.

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

The number of times the system terminated the app from the background while being suspended and having file locks.

### Reading the Crash Count

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

The number of times the system terminated the app from the background for attempting an invalid memory access.

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

The number of times the system terminated the app from the background for attempting to execute an illegal or undefined instruction.

### Reading the Timeout Count

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

The number of times the system terminated the app from the background for exceeding the allocated time for a background task.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

---

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)