JavaScriptTimerExecutor

An interface used by JavaTimerManager to access and call JS timers from Java.

Inheritors

Functions

Link copied to clipboard
abstract fun callIdleCallbacks(frameTime: Double)

Invoke the JS callback registered with requestIdleCallback.

Link copied to clipboard
abstract fun callTimers(timerIDs: WritableArray)

Calls the JS callback(s) associated with the timer ID(s). Also unregisters the callback if the timer isn't recurring (e.g. unregisters for setTimeout, doesn't for setInterval).

Link copied to clipboard
abstract fun emitTimeDriftWarning(warningMessage: String)

Shows a warning message in development when environment times are out of sync.