Magnetic Field Events: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
 
Line 94: Line 94:


# Create an event that uses the '''DeviceMagneticFieldEvent''' interface, with the name ''devicemagneticfield'', which bubbles, is not cancelable, and has no default action, that also meets the following conditions:
# Create an event that uses the '''DeviceMagneticFieldEvent''' interface, with the name ''devicemagneticfield'', which bubbles, is not cancelable, and has no default action, that also meets the following conditions:
## If the implementation is unable to report the current device light, it must stop the service, otherwise initialize the attribute to the '''''current device magnetic field'''''.
## If the implementation is unable to report the current device magnetic field, it must stop the service, otherwise initialize the attribute to the '''''current device magnetic field'''''.
# Queue a task to dispatch the newly created event at the Window object.
# Queue a task to dispatch the newly created event at the Window object.


Confirmed users
19

edits

Navigation menu