Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
class ITimerCallback

Detailed Description

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

Function Documentation

◆ ~ITimerCallback()

virtual ~ITimerCallback ( )
virtualdefault

Class destructor.

◆ OnTimeout()

virtual void 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:

#include <kodi/tools/Timer.h>
class CExample : public kodi::tools::CTimer,
{
public:
CExample() : kodi::tools::CTimer(this)
{
}
void OnTimeout() override
{
// Some work
}
};
Definition Timer.h:59
virtual void OnTimeout()=0
Callback function to implement if constructor CTimer(kodi::tools::CTimer::ITimerCallback* callback) i...