Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
7. Power management events (optional)

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

Functions

virtual PVR_ERROR kodi::addon::CInstancePVRClient::OnSystemSleep ()
 To notify addon about system sleep.
 
virtual PVR_ERROR kodi::addon::CInstancePVRClient::OnSystemWake ()
 To notify addon about system wake up.
 
virtual PVR_ERROR kodi::addon::CInstancePVRClient::OnPowerSavingActivated ()
 To notify addon power saving on system is activated.
 
virtual PVR_ERROR kodi::addon::CInstancePVRClient::OnPowerSavingDeactivated ()
 To notify addon power saving on system is deactivated.
 

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

◆ OnPowerSavingActivated()

virtual PVR_ERROR kodi::addon::CInstancePVRClient::OnPowerSavingActivated ( )
inlinevirtual

To notify addon power saving on system is activated.

Returns
PVR_ERROR_NO_ERROR If successfully done.

◆ OnPowerSavingDeactivated()

virtual PVR_ERROR kodi::addon::CInstancePVRClient::OnPowerSavingDeactivated ( )
inlinevirtual

To notify addon power saving on system is deactivated.

Returns
PVR_ERROR_NO_ERROR If successfully done.

◆ OnSystemSleep()

virtual PVR_ERROR kodi::addon::CInstancePVRClient::OnSystemSleep ( )
inlinevirtual

To notify addon about system sleep.

Returns
PVR_ERROR_NO_ERROR If successfully done.

◆ OnSystemWake()

virtual PVR_ERROR kodi::addon::CInstancePVRClient::OnSystemWake ( )
inlinevirtual

To notify addon about system wake up.

Returns
PVR_ERROR_NO_ERROR If successfully done.