xbmc
Public Member Functions | Friends | List of all members
KODI::WINDOWING::COSScreenSaverInhibitor Class Reference

Inhibit the OS screen saver as long as this object is alive. More...

#include <OSScreenSaver.h>

Public Member Functions

 COSScreenSaverInhibitor (COSScreenSaverInhibitor &&other) noexcept
 
COSScreenSaverInhibitoroperator= (COSScreenSaverInhibitor &&other) noexcept
 
void Release ()
 
bool IsActive () const
 
 operator bool () const
 

Friends

class COSScreenSaverManager
 

Detailed Description

Inhibit the OS screen saver as long as this object is alive.

Destroy or call Release to stop this inhibitor from being active. The OS screen saver may still be inhibited as long as other inhibitors are active though.

Note
Make sure to release or destroy the inhibitor before the COSScreenSaverManager is destroyed

The documentation for this class was generated from the following files: