BatteryManager.onchargingtimechange
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Especifica um event listener para receber eventos chargingtimechange
. Esses eventos ocorrem quando a propriedade chargingTime
(tempo de carregamento) da bateria é atualizada.
Sintaxe
navigator.battery.onchargingtimechange = funcRef
Onde funcRef
é uma função para ser chamada quando o evento chargingtimechange
ocorre.
Especificações
Specification |
---|
Battery Status API # ref-for-dfn-chargingtimechange-1 |
Battery Status API # dom-batterymanager-onchargingtimechange |
Compatibilidade com navegadores
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
chargingtimechange event |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.