One Logo Pool Ball
MetricKit · IOS API REFERENCE

BackgroundTerminationMetric

struct · iOS 27.0+ · SDK 27.1

struct BackgroundTerminationMetric

A metric for background app terminations.

Members (10)

get · iOS 27.0+

memoryLimitTerminationCount

TypeScript
get memoryLimitTerminationCount(): number
Swift declaration
let memoryLimitTerminationCount: Int

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

get · iOS 27.0+

taskTimeoutTerminationCount

TypeScript
get taskTimeoutTerminationCount(): number
Swift declaration
let taskTimeoutTerminationCount: Int

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

get · iOS 27.0+

systemPressureTerminationCount

TypeScript
get systemPressureTerminationCount(): number
Swift declaration
let systemPressureTerminationCount: Int

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

get · iOS 27.0+

illegalInstructionTerminationCount

TypeScript
get illegalInstructionTerminationCount(): number
Swift declaration
let illegalInstructionTerminationCount: Int

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

get · iOS 27.0+

normalTerminationCount

TypeScript
get normalTerminationCount(): number
Swift declaration
let normalTerminationCount: Int

The number of times the application terminated normally from the background.

get · iOS 27.0+

abnormalTerminationCount

TypeScript
get abnormalTerminationCount(): number
Swift declaration
let abnormalTerminationCount: Int

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

get · iOS 27.0+

fileLockTerminationCount

TypeScript
get fileLockTerminationCount(): number
Swift declaration
let fileLockTerminationCount: Int

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

get · iOS 27.0+

watchdogTerminationCount

TypeScript
get watchdogTerminationCount(): number
Swift declaration
let watchdogTerminationCount: Int

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

get · iOS 27.0+

badAccessTerminationCount

TypeScript
get badAccessTerminationCount(): number
Swift declaration
let badAccessTerminationCount: Int

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

get · iOS 27.0+

highCPUTerminationCount

TypeScript
get highCPUTerminationCount(): number
Swift declaration
let highCPUTerminationCount: Int

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

Skipped declarations

No declarations were skipped in this snapshot.

All MetricKit types →