Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
class ITimerCallback

Callback class of timer
To give on constructor by CTimer(kodi::tools::CTimer::ITimerCallback* callback) More...

Functions

virtual kodi::tools::CTimer::ITimerCallback::~ITimerCallback ()=default
 Class destructor.
 
virtual void kodi::tools::CTimer::ITimerCallback::OnTimeout ()=0
 Callback function to implement if constructor CTimer(kodi::tools::CTimer::ITimerCallback* callback) is used and this as parent on related class.
 

Detailed Description

Callback class of timer
To give on constructor by CTimer(kodi::tools::CTimer::ITimerCallback* callback)

Function Documentation

◆ OnTimeout()

virtual void kodi::tools::CTimer::ITimerCallback::OnTimeout ( )
pure virtual

Callback function to implement if constructor CTimer(kodi::tools::CTimer::ITimerCallback* callback) is used and this as parent on related class.


Example:

class CExample : public kodi::tools::CTimer,
{
public:
CExample() : kodi::tools::CTimer(this)
{
}
void OnTimeout() override
{
// Some work
}
};
Definition addons/kodi-dev-kit/include/kodi/tools/Timer.h:232
Definition addons/kodi-dev-kit/include/kodi/tools/Timer.h:59
virtual void OnTimeout()=0
Callback function to implement if constructor CTimer(kodi::tools::CTimer::ITimerCallback* callback) i...
Definition addons/kodi-dev-kit/include/kodi/addon-instance/AudioDecoder.h:21

◆ ~ITimerCallback()

virtual kodi::tools::CTimer::ITimerCallback::~ITimerCallback ( )
virtualdefault

Class destructor.