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.
Header parts:
PVR_ERROR
Definition: pvr_general.h:35
virtual PVR_ERROR OnPowerSavingDeactivated()
To notify addon power saving on system is deactivated.
Definition: PVR.h:2287
virtual PVR_ERROR OnPowerSavingActivated()
To notify addon power saving on system is activated.
Definition: PVR.h:2279
virtual PVR_ERROR OnSystemSleep()
To notify addon about system sleep.
Definition: PVR.h:2263
virtual PVR_ERROR OnSystemWake()
To notify addon about system wake up.
Definition: PVR.h:2271
Source parts:
{
}
{
}
PVR_ERROR CMyInstance::OnPowerSavingActivated()
{
}
PVR_ERROR CMyInstance::OnPowerSavingDeactivated()
{
}
@ PVR_ERROR_NOT_IMPLEMENTED
-2 : The method that Kodi called is not implemented by the add-on.
Definition: pvr_general.h:43
◆ OnSystemSleep()
◆ OnSystemWake()
◆ OnPowerSavingActivated()
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.