createTimer

open fun createTimer(timerId: Int, delay: Long, repeat: Boolean)

A method to be used for synchronously creating a timer. The timer will not be invoked until the next frame, regardless of whether it has already expired (i.e. the delay is 0).

Parameters

timerId

An identifier for the callback that can be passed to JS or C++ to invoke it.

delay

The time in ms before the callback should be invoked.

repeat

Whether the timer should be repeated (used for setInterval).