mozilla
Your Search Results

    FMRadio.disable()

    Non-standard
    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.

    Summary

    The disable method is used to turn off the radio.

    Each time this method is called successfully, the disabled event is fired.

    Syntax

    var request = instanceOfFMRadio.disable();

    Returns

    It returns a DOMRequest to handle the success or error of the operation.

    Example

    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!");
    }
    

    Specification

    Not part of any specification.

    See also

    Document Tags and Contributors

    Contributors to this page: kscarfone, teoli, Jeremie
    Last updated by: teoli,