-
public interface JavaScriptTimerExecutor
An interface used by JavaTimerManager to access and call JS timers from Java.
-
-
Method Summary
Modifier and Type Method Description abstract void
callTimers(WritableArray timerIDs)
Calls the JS callback(s) associated with the timer ID(s). abstract void
callIdleCallbacks(double frameTime)
Invoke the JS callback registered with `requestIdleCallback`. abstract void
emitTimeDriftWarning(String warningMessage)
Shows a warning message in development when environment times are out of sync. -
-
Method Detail
-
callTimers
abstract void callTimers(WritableArray timerIDs)
Calls the JS callback(s) associated with the timer ID(s). Also unregisters the callback if thetimer isn't recurring (e.g. unregisters for setTimeout, doesn't for setInterval).
- Parameters:
timerIDs
- An array of timer handles to call.
-
callIdleCallbacks
abstract void callIdleCallbacks(double frameTime)
Invoke the JS callback registered with `requestIdleCallback`.
- Parameters:
frameTime
- The amount of time left in the frame, in ms.
-
emitTimeDriftWarning
abstract void emitTimeDriftWarning(String warningMessage)
Shows a warning message in development when environment times are out of sync.
- Parameters:
warningMessage
- The message to show
-
-
-
-