PowerState
此内容尚不支持你的语言。
Defined in: sdk/src/device/types.ts:38
How much the device has left to give: the battery and how hot it runs. A null is a thing this platform does not say, which is not the same as nothing being wrong.
Properties
Section titled “Properties”charging
Section titled “charging”charging:
boolean|null
Defined in: sdk/src/device/types.ts:41
level:
number|null
Defined in: sdk/src/device/types.ts:40
The battery’s charge, 0 to 1.
thermal
Section titled “thermal”thermal:
"nominal"|"fair"|"serious"|"critical"|null
Defined in: sdk/src/device/types.ts:43
Thermal pressure on the processor, as the platform reports it.