mozilla
Your Search Results

    MozVoicemail

    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 OS for internal applications only.

    Summary

    The MozVoicemail API allows access to the information regarding the voicemail features available through the RIL of a Firefox OS device.

    Interface overview

    interface MozVoicemail: EventTarget
    {
      attribute EventHandler onstatuschanged;
    
      MozVoicemailStatus? getStatus(optional unsigned long serviceId);
      DOMString? getNumber(optional unsigned long serviceId);
      DOMString? getDisplayName(optional unsigned long serviceId);
    };

    Properties

    Event Handlers

    MozVoicemail.onstatuschange
    A handler for the statuschange event; it is triggered when the voicemail status has changed.

    Note: Because the MozVoicemail interface inherits from the EventTarget interface, all these events can also be listened for by using the addEventListener method.

    Methods

    MozVoicemail.getStatus()
    Return a MozVoicemailStatus object indicating the current voicemail status of a specified service, or null when the status is unknown.
    MozVoicemail.getNumber()
    Return a string indicating the voicemail box dialing number of a specified service, or null if none was found.
    MozVoicemail.getDisplayName()
    Return a string representing the display name of the voicemail box dialing number of a specified service, or null if none was found.

    Specification

    Not part of any specification yet.

    See also

    Document Tags and Contributors

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