use web/battery

battery ( → m )

Returns the BatteryManager singleton, which allows you to access the device’s battery status, charge level, etc., and hook into events when the values change.


back to index

docs@04547c7