aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/http/headers/feature-policy/battery/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/http/headers/feature-policy/battery/index.html')
-rw-r--r--files/ja/web/http/headers/feature-policy/battery/index.html62
1 files changed, 62 insertions, 0 deletions
diff --git a/files/ja/web/http/headers/feature-policy/battery/index.html b/files/ja/web/http/headers/feature-policy/battery/index.html
new file mode 100644
index 0000000000..a644447d68
--- /dev/null
+++ b/files/ja/web/http/headers/feature-policy/battery/index.html
@@ -0,0 +1,62 @@
+---
+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>
+
+<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div>
+
+<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>