Package 

Interface NotThreadSafeBridgeIdleDebugListener


  • 
    public interface NotThreadSafeBridgeIdleDebugListener
    
                        

    Interface for receiving notification for bridge idle/busy events. Should not affect application logic and should only be used for debug/monitoring/testing purposes. Call to start monitoring.

    NB: onTransitionToBridgeIdle and onTransitionToBridgeBusy may be called from different threads, and those threads may not be the same thread on which the listener was originally registered.

    • Method Summary

      Modifier and Type Method Description
      abstract void onTransitionToBridgeIdle() Called once all pending JS calls have resolved via an onBatchComplete call in the bridge andthe requested native module calls have also run.
      abstract void onTransitionToBridgeBusy() Called when the bridge was in an idle state and executes a JS call or callback.
      abstract void onBridgeDestroyed() Called when the bridge is destroyed
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onTransitionToBridgeIdle

         abstract void onTransitionToBridgeIdle()

        Called once all pending JS calls have resolved via an onBatchComplete call in the bridge andthe requested native module calls have also run. The bridge will not become busy again until atimer, touch event, etc. causes a Java->JS call to be enqueued again.

      • onTransitionToBridgeBusy

         abstract void onTransitionToBridgeBusy()

        Called when the bridge was in an idle state and executes a JS call or callback.

      • onBridgeDestroyed

         abstract void onBridgeDestroyed()

        Called when the bridge is destroyed