Kodi Development  19.0
for Binary and Script based Add-Ons
7. Power management events (optional)

Detailed Description

Used to notify the pvr addon for power management events
Used to allow any energy savings.


Power management events in interface:
Copy this to your project and extend with your parts or leave functions complete away where not used or supported.

Function Documentation

◆ OnSystemSleep()

virtual PVR_ERROR OnSystemSleep ( )
inlinevirtual

To notify addon about system sleep.

Returns
PVR_ERROR_NO_ERROR If successfully done.

◆ OnSystemWake()

virtual PVR_ERROR OnSystemWake ( )
inlinevirtual

To notify addon about system wake up.

Returns
PVR_ERROR_NO_ERROR If successfully done.

◆ OnPowerSavingActivated()

virtual PVR_ERROR OnPowerSavingActivated ( )
inlinevirtual

To notify addon power saving on system is activated.

Returns
PVR_ERROR_NO_ERROR If successfully done.

◆ OnPowerSavingDeactivated()

virtual PVR_ERROR OnPowerSavingDeactivated ( )
inlinevirtual

To notify addon power saving on system is deactivated.

Returns
PVR_ERROR_NO_ERROR If successfully done.