Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

FMRadio.disable

非標準
This feature is not on a current W3C standards track, but it is supported on the Firefox OS platform. Although implementations may change in the future and it is not supported widely across browsers, it is suitable for use in code dedicated to Firefox OS apps.

This API is available on Firefox or Firefox OS for installed or higher privileged applications.

概要

disable メソッドは、ラジオを OFF にするために使用します。

このメソッドの呼び出しが成功した時に、毎回 disabled イベントが発生します。

構文

var request = instanceOfFMRadio.disable();

戻り値

命令の成功またはエラーを扱う DOMRequest を返します。

var request = navigator.mozFMRadio.disable(100.0);
 
request.onsuccess = function () {
  console.log("The radio is turned off");
}

request.onerror = function () {
  console.log("Something goes wrong!");
}

仕様書

仕様はありません。

参照

ドキュメントのタグと貢献者

 このページの貢献者: fscholz, Marsf
 最終更新者: Marsf,