device

Exposes the device properties.

id: string

The identifierForVendor UUID string of the device.

name: string

The user provided name of the device.

systemName: string

The name of the operating system running on the device.

systemVersion: string

The version of the operating system running on the device.

model: string

The model of the device.

localizedModel: string

The localized model of the device.

batteryLevel: number

The battery level of the device, from 0.0 to 1.0. -1.0 if the battery state is unknown.

batteryState: string

The battery state of the device. One of “unknown”, “unplugged”, “charging”, “full”.