Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
No Matches
KODI::WINDOWING::COSScreenSaverManager Class Reference

#include <OSScreenSaver.h>

Public Member Functions

 COSScreenSaverManager (std::unique_ptr< IOSScreenSaver > impl)
COSScreenSaverInhibitor CreateInhibitor ()
bool IsInhibited ()


class COSScreenSaverInhibitor

Detailed Description

Manage the OS screen saver

This class keeps track of a number of COSScreenSaverInhibitor instances and keeps the OS screen saver inhibited as long as at least one of them exists and is active.

Constructor & Destructor Documentation

◆ COSScreenSaverManager()

COSScreenSaverManager::COSScreenSaverManager ( std::unique_ptr< IOSScreenSaver > impl)

Create manager with backing OS-specific implementation

Member Function Documentation

◆ CreateInhibitor()

COSScreenSaverInhibitor COSScreenSaverManager::CreateInhibitor ( )

Create inhibitor that prevents the OS screen saver from becoming active as long as it is alive

◆ IsInhibited()

bool COSScreenSaverManager::IsInhibited ( )

Check whether the OS screen saver is currently inhibited

Friends And Related Symbol Documentation

◆ COSScreenSaverInhibitor

friend class COSScreenSaverInhibitor

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