Kodi's monitor class.
Class: xbmc.Monitor() Creates a new monitor to notify addon about changes.
| onSettingsChanged | ( | ) |
Function: onSettingsChanged() Will be called when addon settings are changed
| onScreensaverActivated | ( | ) |
Function: onScreensaverActivated() Will be called when screensaver kicks in
| onScreensaverDeactivated | ( | ) |
Function: onScreensaverDeactivated() Will be called when screensaver goes off
| onDPMSActivated | ( | ) |
Function: onDPMSActivated() Will be called when energysaving/DPMS gets active
| onDPMSDeactivated | ( | ) |
Function: onDPMSDeactivated() Will be called when energysaving/DPMS is turned off
| onScanStarted | ( | ... | ) |
Function: onScanStarted(library) | library | Video / music as string |
| onScanFinished | ( | ... | ) |
Function: onScanFinished(library) | library | Video / music as string |
| onCleanStarted | ( | ... | ) |
Function: onCleanStarted(library) | library | Video / music as string |
| onCleanFinished | ( | ... | ) |
Function: onCleanFinished(library) | library | Video / music as string |
| onNotification | ( | ... | ) |
Function: onNotification(sender, method, data) | sender | Sender of the notification |
| method | Name of the notification |
| data | JSON-encoded data of the notification |
| waitForAbort | ( | ... | ) |
Function: waitForAbort([timeout]) Block until abort is requested, or until timeout occurs. If an abort requested have already been made, return immediately.
| timeout | [opt] float - timeout in seconds. Default: no timeout. |
Example:
| abortRequested | ( | ) |
Function: abortRequested()