TimerService

Timer service object. Because on some platforms the timer support doesn't exist natively, the API user must provide a timer mechanism required internally by the engine. The service supports only one listener.

Constructors

Link copied to clipboard
constructor()
constructor(address: Long)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Functions

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
open fun onRegisterListener(listener: ITimerListener?): Int

Registers the timer events listener.

Link copied to clipboard
open fun onStartTimer(intervalMs: Int): Int

Starts the timer.

Link copied to clipboard
open fun onStopTimer(): Int

Stops the timer.

Link copied to clipboard

Unregisters the timer events listener.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if: