Kodi Development  20.0
for Binary and Script based Add-Ons
class ITimerCallback

Detailed Description

Callback class of timer
To give on contructor 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 constuctor 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 constuctor CTimer(kodi::tools::CTimer::ITimerCallback* callback) is...
CTimer(kodi::tools::CTimer::ITimerCallback *callback)
Class constructor to pass individual other class as callback.
Definition: Timer.h:70