What can we improve?

Documentation

(Edit)

Sys_GetBattery

array Sys_GetBattery ()

Returns

Array with information about the battery

Description

Gives information about the presence of a battery, whether it is in use and what percentage of the battery charge is left. The remaining time and maximum battery life are indicated in seconds.

Example

print_r(Sys_GetBattery());
/*
// Sample output on a desktop PC without battery
Array
(
[OnBattery] =>
[IsCharging] =>
[BatteryLevel] => -1
[BatteryRemainingTime] => -1
[BatteryMaxTime] => -1
)
*/
Deutsche Webseite verfügbar
Go to cart
Any questions?