aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/batterymanager/chargingtime
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/web/api/batterymanager/chargingtime')
-rw-r--r--files/ko/web/api/batterymanager/chargingtime/index.html74
1 files changed, 74 insertions, 0 deletions
diff --git a/files/ko/web/api/batterymanager/chargingtime/index.html b/files/ko/web/api/batterymanager/chargingtime/index.html
new file mode 100644
index 0000000000..7b823afb4b
--- /dev/null
+++ b/files/ko/web/api/batterymanager/chargingtime/index.html
@@ -0,0 +1,74 @@
+---
+title: BatteryManager.chargingTime (배터리관리기 충전시간)
+slug: Web/API/BatteryManager/chargingTime
+tags:
+ - API
+ - Battery API
+ - 목적
+ - 참조
+translation_of: Web/API/BatteryManager/chargingTime
+---
+<div>{{obsolete_header}}</div>
+
+<p>{{APIRef("Battery API")}}</p>
+
+<p>몇 초 단위로, 배터리가 완전히 충전될 때까지 남은 시간량을 가리킵니다.</p>
+
+<div class="note">
+<p>반환되는 시간이 정확하더라도, 개인정보보호 정책 사유로 브라우저들이 더 큰 간격(대개 15분)으로 시간량을 반올림합니다.</p>
+</div>
+
+<pre class="syntaxbox notranslate">var <em>time</em> = battery.chargingTime</pre>
+
+<p>반환되는 중에, 건전지가 완전히 충전될 때까지 또는 이미 완전히 충전되어 있다면 0이 될 때까지  <code>time</code> 은 몇 초 뒤에 남게 되는 시간입니다. 이는 {{domxref("BatteryManager")}} object (객체),입니다. 배터리의 전류가 방전되어 있다면, 이 값은 <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Infinity">Infinity</a></code>, 즉 무한 값이 됩니다.</p>
+
+<h2 id="Example" name="Example">예제</h2>
+
+<h3 id="HTML_콘텐츠">HTML 콘텐츠</h3>
+
+<pre class="brush: html notranslate">&lt;div id="chargingTime"&gt;(charging time unknown)&lt;/div&gt;
+</pre>
+
+<h3 id="자바언어_콘텐츠">자바언어 콘텐츠</h3>
+
+<pre class="brush: js; highlight:[3] notranslate">navigator.getBattery().then(function(battery) {
+
+ var time = battery.chargingTime;
+
+ document.querySelector('#chargingTime').textContent = battery.chargingTime;
+});
+</pre>
+
+<p>{{ EmbedLiveSample('Example', '100%', 30) }}</p>
+
+<h2 id="설명서">설명서</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">사양 (설명)</th>
+ <th scope="col">상태 (설명)</th>
+ <th scope="col">관련 (설명)</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName("Battery API")}}</td>
+ <td>{{Spec2("Battery API")}}</td>
+ <td>최초 정의</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="브라우저_호환성">브라우저 호환성</h2>
+
+<div class="hidden">이 페이지와 호환되는 표가 구조화된 데이터에서 생성되게 됩니다. 당신이 이 데이터에 이바지하기를 원한다면, <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> 를검토해보시고, 우리에게 여러가지 요청을 보내보세요.</div>
+
+<p>{{Compat("api.BatteryManager.chargingTime")}}</p>
+
+<h2 id="같이_보세요">같이 보세요</h2>
+
+<ul>
+ <li>{{domxref("BatteryManager")}}</li>
+ <li>{{domxref("Navigator.getBattery")}}</li>
+</ul>