aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/fmradio/frequency/index.html
blob: b495dd95167de08f97ac3ef53851187c9d18baa0 (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
---
title: FMRadio.frequency
slug: Web/API/FMRadio/frequency
tags:
  - API
  - B2G
  - Firefox OS
  - Non Standard
  - Property
  - Reference
  - WebAPI
  - WebFM
translation_of: Archive/B2G_OS/API/FMRadio/frequency
---
<div class="syntaxbox">
 {{ non-standard_header() }}</div>
<p>{{ B2GOnlyHeader2('installed') }}</p>
<h2 id="概要">概要</h2>
<p><code>frequency</code> プロパティの値は、現在のラジオ周波数を返します。</p>
<h2 id="構文">構文</h2>
<pre class="syntaxbox">var frequency = <em>instanceOfFMRadio</em>.frequency</pre>
<h2 id="値"></h2>
<p>ラジオ周波数の <a href="http://ja.wikipedia.org/wiki/%E3%83%98%E3%83%AB%E3%83%84" title="http://ja.wikipedia.org/wiki/%E3%83%98%E3%83%AB%E3%83%84">MHz</a> (MegaHertz) 単位の値を返します。</p>
<h2 id="例"></h2>
<pre class="brush: js">window.addEventListener('frequencychange', function () {
  console.log("周波数が " + navigator.mozFMRadio.frequency + "MHz に変更されました");
});
</pre>
<h2 id="Specification" name="Specification">仕様書</h2>
<p>仕様はありません。</p>
<h2 id="参照">参照</h2>
<ul>
 <li>{{domxref("FMRadio")}}</li>
 <li>{{domxref("FMRadio.onfrequencychange")}}</li>
 <li>{{event("frequencychange")}} イベント</li>
</ul>