Package 

Class TimingModule.BridgeTimerExecutor

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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