aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/networkinformation/downlinkmax/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/api/networkinformation/downlinkmax/index.html')
-rw-r--r--files/ja/web/api/networkinformation/downlinkmax/index.html122
1 files changed, 122 insertions, 0 deletions
diff --git a/files/ja/web/api/networkinformation/downlinkmax/index.html b/files/ja/web/api/networkinformation/downlinkmax/index.html
new file mode 100644
index 0000000000..c369c1891e
--- /dev/null
+++ b/files/ja/web/api/networkinformation/downlinkmax/index.html
@@ -0,0 +1,122 @@
+---
+title: NetworkInformation.downlinkMax
+slug: Web/API/NetworkInformation/downlinkMax
+tags:
+ - API
+ - Experimental
+ - Network Information API
+ - NetworkInformation
+ - Property
+ - Read-only
+ - Reference
+translation_of: Web/API/NetworkInformation/downlinkMax
+---
+<p>{{APIRef("Network Information API")}}{{SeeCompatTable}}</p>
+
+<p><strong><code>NetworkInformation.downlinkMax</code></strong> 読み取り専用プロパティは、メガビット毎秒(Mbps)単位で、基底の接続技術の最大下り速度を返します。</p>
+
+<h2 id="構文">構文</h2>
+
+<pre class="syntaxbox">var <em>max</em> = NetworkInformation.<em>downlinkMax</em></pre>
+
+<h3 id="戻り値">戻り値</h3>
+
+<ul>
+ <li>メガビット毎秒(Mbps)単位で、基底の接続技術の最大下り速度を表す<code>無制限のdouble</code>。</li>
+</ul>
+
+<h2 id="例">例</h2>
+
+<p>次の例は、<code>change</code> イベントで接続をモニターして、発生した変更をロギングしています。</p>
+
+<pre class="brush: js"><code>function logConnectionType() {
+ var connectionType = 'not supported';
+ var downlinkMax = 'not supported';
+
+ if ('connection' in navigator) {
+ connectionType = navigator.connection.type;
+
+ if ('downlinkMax' in navigator.connection) {
+ downlinkMax = navigator.connection.downlinkMax;
+ }
+ }
+
+ console.log('Current connection type: ' + connectionType +
+ ' (downlink max: ' + downlinkMax + ')');
+}
+
+logConnectionType();
+navigator.connection.addEventListener('change', logConnectionType);</code></pre>
+
+<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('Network Information', '#widl-NetworkInformation-downlinkMax', 'downlinkMax')}}</td>
+ <td>{{Spec2('Network Information')}}</td>
+ <td>最初の定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="ブラウザ実装状況">ブラウザ実装状況</h2>
+
+<p>{{CompatibilityTable}}</p>
+
+<div id="compat-desktop">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>機能</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari</th>
+ </tr>
+ <tr>
+ <td>基本サポート</td>
+ <td>{{CompatChrome(48.0)}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<div id="compat-mobile">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>機能</th>
+ <th>Android</th>
+ <th>Android Webview</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Mobile</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ <th>Chrome for Android</th>
+ </tr>
+ <tr>
+ <td>基本サポート</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatChrome(48.0)}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>