Module function reference

power_status

A reference entry for power_status

Module function · System

power_status () ⇒ map

Returns battery availability, charge level, charging state, and AC power state.

Example

YASS
$status = System::power_status()
print($status)