aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/navigator/battery/index.html
blob: f199519ea90f0d092aa635273a843cdc4c2c32c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
title: window.navigator.battery
slug: Web/API/Navigator/battery
translation_of: Web/API/Navigator/battery
---
<p>{{ Apiref() }}</p>
<h2 id="요약">요약</h2>
<p><code>battery 객체는 시스템의 배터리 충전 상태에 대한 정보를 제공합니다. 배터리의 충전 상태가 변화할때 발생하는 이벤트에 대한 처리도 가능 합니다. 이 객체는 </code><a href="/en-US/docs/WebAPI/Battery_Status" title="/en-US/docs/WebAPI/Battery_Status">Battery Status API</a> 의 구현입니다. 보다 자세한 내용, API, 샘플 코드 등은 문서를 참고 해 주세요.</p>
<h2 id="Syntax" name="Syntax">문법</h2>
<pre class="syntaxbox">var battery = window.navigator.battery;</pre>
<h2 id="값"></h2>
<p><code>navigator.battery</code>{{domxref("BatteryManager")}} 객체 입니다.</p>
<h2 id="명세">명세</h2>
<p>{{page("/en-US/docs/Web/API/BatteryManager","Specifications")}}</p>
<h2 id="브라우저_호환">브라우저 호환</h2>
<p style="color: rgb(77, 78, 83);">{{page("/en-US/docs/Web/API/BatteryManager","Browser_compatibility")}}</p>
<p><span style="font-family: Georgia, Times, 'Times New Roman', serif; font-size: 1.628em; font-weight: 700; letter-spacing: -1px; line-height: 22.79199981689453px;">참고</span></p>
<ul>
 <li>{{domxref("BatteryManager")}}</li>
 <li><a href="/en-US/docs/WebAPI/Battery_Status" title="/en-US/docs/WebAPI/Battery_Status">Battery Status API</a> 문서</li>
 <li><a class="external" href="http://hacks.mozilla.org/2012/02/using-the-battery-api-part-of-webapi/">블로그 - Using the Battery API</a></li>
 <li><a class="external" href="http://davidwalsh.name/battery-api">David Walsh 가 쓴 the JavaScript Battery Api</a></li>
 <li><a href="https://github.com/pstadler/battery.js">battery.js - 경량의 크로스 브라우저 랩퍼(wrapper)</a></li>
</ul>