WebAPI/SettingsAPI: Difference between revisions

(→‎Proposed API: add change event)
Line 7: Line 7:
There is a readonly mozSettings attribute in ''window.navigator'' that would return an object implementing the ''SettingsManager'' interface.
There is a readonly mozSettings attribute in ''window.navigator'' that would return an object implementing the ''SettingsManager'' interface.


   interface SettingsManager
   interface SettingsManager : EventTarget
   {
   {
     // List of known settings.
     // List of known settings.
Line 42: Line 42:


''SettingsEvent'' is used for the followings events:
''SettingsEvent'' is used for the followings events:
- ''change'' which happens when a setting value changes
- ''change'' which is dispatched to the SettingsManager object when a setting value changes


== Notes ==
== Notes ==
Confirmed users
368

edits