public interface JavaScriptTimerManager
JavaTimerManager
to access and call JS timers from Java.Modifier and Type | Method and Description |
---|---|
void |
callIdleCallbacks(double frameTime)
Invoke the JS callback registered with `requestIdleCallback`.
|
void |
callTimers(WritableArray timerIDs)
Calls the JS callback(s) associated with the timer ID(s).
|
void |
emitTimeDriftWarning(java.lang.String warningMessage)
Shows a warning message in development when environment times are out of sync.
|
void callTimers(WritableArray timerIDs)
timerIDs
- An array of timer handles to call. Accepts an array as an optimization, to
avoid unnecessary JNI calls.void callIdleCallbacks(double frameTime)
frameTime
- The amount of time left in the frame, in ms.void emitTimeDriftWarning(java.lang.String warningMessage)
warningMessage
- The message to show