mozilla
Your Search Results

    SettingsManager.createLock()

    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

    This method returns a SettingsLock object. This object is used to access and modify all the settings asynchronously and safely.

    Each time you use that method, you add the created lock object to an internal list of SettingsLock objects. As long as the current SettingsLock object performs actions against any settings, other SettingsLock objects will not be able to do anything. All their own actions are queued and will be executed at a later time, one object at a time.

    Syntax

    SettingsManager.createLock();

    Example

    var lock = navigator.mozSettings.createLock();
    

    Specification

    Not part of any specification yet; however, this API will be discussed at W3C as part of the System Applications Working Group.

    See also

    Document Tags and Contributors

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