BatteryManager.chargingTime
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Indica a quantidade de tempo, em segundos, que resta até que a bateria esteja totalmente carregada.
Sintaxe
var time = navigator.battery.chargingTime
No retorno, time
é o tempo restante em segundos até que a bateria esteja totalmente carregada, ou 0 se a bateria já estiver com sua carga completa. Se a bateria estiver descarregando (ou se o sistema não é capaz de derminar o tempo restante para o carregamento), este valor é Infinity
.
Especificações
Specification |
---|
Battery Status API # dom-batterymanager-chargingtime |
Compatibilidade com navegadores
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
chargingTime |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- No support
- No support
- Has more compatibility info.
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.