One Logo Pool Ball
MetricKit · IOS API REFERENCE

DiagnosticReport.Environment

struct · iOS 27.0+ · SDK 27.1

struct Environment

Environment context for diagnostic reports.

Members (12)

get · iOS 27.0+

deviceType

TypeScript
get deviceType(): string
Swift declaration
let deviceType: String

The hardware identifier for the device.

get · iOS 27.0+

regionFormat

TypeScript
get regionFormat(): string
Swift declaration
let regionFormat: String

The short country code for the region format setting of the device.

get · iOS 27.0+

signpostData

TypeScript
get signpostData(): Array<SignpostRecord>
Swift declaration
let signpostData: [SignpostRecord]

Signpost data associated with the diagnostic.

get · iOS 27.0+

isTestFlightApp

TypeScript
get isTestFlightApp(): boolean
Swift declaration
let isTestFlightApp: Bool

Indicates whether the app is registered with TestFlight.

get · iOS 27.0+

bundleIdentifier

TypeScript
get bundleIdentifier(): string
Swift declaration
let bundleIdentifier: String

String representation of the bundle ID of the process.

get · iOS 27.0+

applicationVersion

TypeScript
get applicationVersion(): string
Swift declaration
let applicationVersion: String

The value of the bundle version key, short form, in the app's property list.

get · iOS 27.0+

lowPowerModeEnabled

TypeScript
get lowPowerModeEnabled(): boolean
Swift declaration
let lowPowerModeEnabled: Bool

Indicates whether low power mode is enabled on the device.

get · iOS 27.0+

platformArchitecture

TypeScript
get platformArchitecture(): string
Swift declaration
let platformArchitecture: String

The name of the processor architecture for the device.

get · iOS 27.0+

applicationBuildVersion

TypeScript
get applicationBuildVersion(): string
Swift declaration
let applicationBuildVersion: String

The value of the bundle version key in the app's property list.

get · iOS 27.0+

pid

TypeScript
get pid(): (SDKHandle) | null
Swift declaration
let pid: pid_t?

The process ID (PID) of the process.

get · iOS 27.0+

states

TypeScript
get states(): Array<MetricManager_ReportedState>
Swift declaration
let states: [MetricManager.ReportedState]

All states that were active leading up to this diagnostic event. This array contains all the StateReporting states that occurred before the diagnostic event. The array may be empty if no StateReporting context was active.

get · iOS 27.0+

osVersion

TypeScript
get osVersion(): OSVersion
Swift declaration
let osVersion: OSVersion

The version of the OS on the device including the type of OS, version number, and build number.

Skipped declarations

No declarations were skipped in this snapshot.

All MetricKit types →