One Logo Pool Ball
MetricKit · IOS API REFERENCE

MetricReport.Environment

struct · iOS 27.0+ · SDK 27.1

struct Environment

Environment context for metric reports.

Members (11)

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+

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+

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+

hasExceededStateLimit

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

A Boolean indicating if the number of emitted states exceeded the aggregation limit. When `true`, some states may have been omitted from the report. Metrics associated with the omitted states will be included in the full day interval entry along with non-state-aggregated metrics.

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+

latestApplicationVersion

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

The version of the app on the device at the end of the reporting period.

get · iOS 27.0+

includesMultipleApplicationVersions

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

A Boolean indicating if the version of the app changed at least once during the reporting period.

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 →