Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Converted pt-BR/docs/web/api/batterymanager/dischargingtimecha… #7249

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions files/pt-br/web/api/batterymanager/dischargingtime/index.html

This file was deleted.

33 changes: 33 additions & 0 deletions files/pt-br/web/api/batterymanager/dischargingtime/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: BatteryManager.dischargingTime
slug: Web/API/BatteryManager/dischargingTime
tags:
- API
- Battery API
- Propriedade
- Referencia
translation_of: Web/API/BatteryManager/dischargingTime
---

{{APIRef("Battery API")}}

Indica a quantidade de tempo, em segundos, que restam até a bateria estar totalmente descarregada.

## Sintaxe

var time = navigator.battery.dischargingTime

No retorno, `time` é o tempo restante em segundos até que a bateria esteja totamente descarregada e o sistema suspenda. Este valor é [`Infinity`](/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Infinity) se a bateria estiver carregando, ao invés de descarregando, ou se o sistema não for capaz de determinar o tempo restante de carregamento (ou ainda se não existir uma bateria disponível).

## Especificações

{{Specifications}}

## Compatibilidade com navegadores

{{Compat}}

## Veja também

- {{domxref("BatteryManager")}}
- {{domxref("Navigator.getBattery")}}