-
- All Implemented Interfaces:
-
com.facebook.react.modules.core.JavaScriptTimerExecutor
public class TimingModule.BridgeTimerExecutor implements JavaScriptTimerExecutor
-
-
Method Summary
Modifier and Type Method Description void
callTimers(WritableArray timerIDs)
Calls the JS callback(s) associated with the timer ID(s). void
callIdleCallbacks(double frameTime)
Invoke the JS callback registered with `requestIdleCallback`. void
emitTimeDriftWarning(String warningMessage)
Shows a warning message in development when environment times are out of sync. -
-
Method Detail
-
callTimers
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
void callIdleCallbacks(double frameTime)
Invoke the JS callback registered with `requestIdleCallback`.
- Parameters:
frameTime
- The amount of time left in the frame, in ms.
-
emitTimeDriftWarning
void emitTimeDriftWarning(String warningMessage)
Shows a warning message in development when environment times are out of sync.
- Parameters:
warningMessage
- The message to show
-
-
-
-