API reference

DeviceState Struct

Extends Sendable, Equatable
Represents the current state of a connected device.
Contains observable device state metrics such as the device's thermal level. Use WearablesInterface.deviceStateStream(for:) to observe changes.

Signature

struct DeviceState: Sendable, Equatable

Constructors

init ( thermalLevel )
Creates a new device state with the specified thermal level.
Signature
public init( thermalLevel: ThermalLevel)
Parameters
thermalLevel: ThermalLevel  The thermal level of the device. Defaults to ThermalLevel.unknown.

Properties

thermalLevel : ThermalLevel
The current thermal level of the device.