API reference

DeviceState Class

Modifiers: final
Observable state of a connected device.
Obtain via Wearables.getDeviceState which returns a StateFlow that emits updates as device health changes. Always-on monitoring - no session required.

Signature

data class DeviceState(val thermalLevel: ThermalLevel = ThermalLevel.UNKNOWN)

Constructors

DeviceState ( thermalLevel )
Signature
constructor(thermalLevel: ThermalLevel = ThermalLevel.UNKNOWN)
Parameters
thermalLevel: ThermalLevel  The current thermal level of the device.

Properties

thermalLevel : ThermalLevel
[Get]
The current thermal level of the device.
Signature
val thermalLevel: ThermalLevel