BatteryManager.onlevelchange
Resumen
Especifica un detector de eventos para recibir eventos de levelchange
("cambio de nivel"). Estos eventos ocurren cuando el BatteryManager.level
de batería se actualiza.
Sintaxis
navigator.battery.onlevelchange = funcRef
Donde funcRef
es una función que se convoca cuando el evento de levelchange
sucede.
Especificaciones
Specification | Status | Comment |
---|---|---|
Battery Status API | Candidate Recommendation | Initial definition |
Compatibilidad de navegadores
BCD tables only load in the browser