This service monitors devices for events, we can then perform various tasks based on these events. This is a global monitor so it will get events for all devices and also detects devices being added or removed. More...
Go to the source code of this file.
Functions | |
| Cu | import ("resource://gre/modules/XPCOMUtils.jsm") |
| function | deviceEventMonitor () |
| function | NSGetModule (compMgr, fileSpec) |
Variables | |
| const | Cc = Components.classes |
| const | Ci = Components.interfaces |
| const | Cu = Components.utils |
| const | VIDEO_TOGO_PLAYLIST_NAME = "video-togo" |
| var | deviceEventMonitorConfig |
| deviceEventMonitor | prototype |
This service monitors devices for events, we can then perform various tasks based on these events. This is a global monitor so it will get events for all devices and also detects devices being added or removed.
Definition in file sbDeviceEventMonitor.js.
| function deviceEventMonitor | ( | ) |
| Cu import | ( | "resource://gre/modules/XPCOMUtils.jsm" | ) |
| function NSGetModule | ( | compMgr, | |
| fileSpec | |||
| ) |
/brief XPCOM initialization code
Definition at line 245 of file sbDeviceEventMonitor.js.
| const Cc = Components.classes |
Definition at line 32 of file sbDeviceEventMonitor.js.
| const Ci = Components.interfaces |
Definition at line 33 of file sbDeviceEventMonitor.js.
| const Cu = Components.utils |
Definition at line 34 of file sbDeviceEventMonitor.js.
| var deviceEventMonitorConfig |
Definition at line 44 of file sbDeviceEventMonitor.js.
| deviceEventMonitor prototype |
Definition at line 72 of file sbDeviceEventMonitor.js.
| const VIDEO_TOGO_PLAYLIST_NAME = "video-togo" |
Definition at line 42 of file sbDeviceEventMonitor.js.