aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/http/headers/feature-policy/battery/index.html
blob: 43db2fe5a49f3570ef52b7e878ed891174ba44b3 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
title: 'Feature-Policy: battery'
slug: Web/HTTP/Headers/Feature-Policy/battery
translation_of: Web/HTTP/Headers/Feature-Policy/battery
---
<p>{{HTTPSidebar}}{{SeeCompatTable}}</p>

<p>HTTP の {{HTTPHeader("Feature-Policy")}} ヘッダーにおける <code>battery</code> ディレクティブは、現在の文書で {{DOMxRef("Navigator.getBattery","Navigator.getBattery()")}} で得られる {{DOMxRef("BatteryManager")}} インターフェイスによって、端末のバッテリに関する情報の収集を許可するかどうかを制御します。</p>

<h2 id="Syntax" name="Syntax">構文</h2>

<pre class="notranslate">Feature-Policy: battery &lt;allowlist&gt;;</pre>

<dl>
 <dt>&lt;allowlist&gt;</dt>
 <dd>{{page("/ja/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy", "allowlist")}}</dd>
</dl>

<h2 id="Default_policy" name="Default_policy">既定のポリシー</h2>

<p>既定値は <code>'self'</code> です。</p>

<h2 id="Specifications" name="Specifications">仕様書</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("Feature Policy")}}</td>
   <td>{{Spec2("Feature Policy")}}</td>
   <td>初回定義</td>
  </tr>
  <tr>
   <td>{{SpecName("Battery API","#feature-policy-integration","Feature Policy integration")}}</td>
   <td>{{Spec2("Battery API")}}</td>
   <td></td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>

<p>{{Compat("http.headers.Feature-Policy.battery")}}</p>

<h2 id="See_also" name="See_also">関連情報</h2>

<ul>
 <li>{{HTTPHeader("Feature-Policy")}} ヘッダー</li>
 <li><a href="/ja/docs/Web/HTTP/Feature_Policy">機能ポリシー</a></li>
 <li><a href="/ja/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy">機能ポリシーの使用</a></li>
 <li><a href="/ja/docs/Web/API/Battery_Status_API">Battery Status API</a></li>
 <li>{{DOMxRef("Navigator.getBattery","Navigator.getBattery()")}}</li>
 <li>{{DOMxRef("BatteryManager")}}</li>
</ul>