Not Thread Safe Bridge Idle Debug Listener
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.
Functions
Called when the bridge is destroyed
Called when the bridge was in an idle state and executes a JS call or callback.
Called once all pending JS calls have resolved via an onBatchComplete call in the bridge and the requested native module calls have also run. The bridge will not become busy again until a timer, touch event, etc. causes a Java->JS call to be enqueued again.