BatteryManager.onchargingchange
Resumen
Especifica un evento oyente para recibir eventos chargingchange
. Estos eventos se producen cuando se actualiza el estado de la batería charging
.
Sintaxis
navigator.battery.onchargingchange = funcRef
Donde funcRef
es una función para llamar cuando se produce el evento chargingchange
.
Especificaciones
Specification | Status | Comment |
---|---|---|
Battery Status API | Candidate Recommendation | Initial definition |
Compatibilidad con navegadores
BCD tables only load in the browser