-
- All Implemented Interfaces:
-
androidx.test.espresso.IdlingResource,com.facebook.react.bridge.NotThreadSafeBridgeIdleDebugListener,com.wix.detox.reactnative.idlingresources.DescriptiveIdlingResource
public class BridgeIdlingResource extends DetoxBaseIdlingResource implements NotThreadSafeBridgeIdleDebugListener
IdlingResource for Espresso, which monitors the traffic of React Native's JS bridge.
-
-
Constructor Summary
Constructors Constructor Description BridgeIdlingResource(ReactContext reactContext)
-
Method Summary
Modifier and Type Method Description voidonDetach()StringgetName()IdlingResourceDescriptiongetDescription()Returns a descriptive representation of the resource. voidregisterIdleTransitionCallback(IdlingResource.ResourceCallback callback)voidonTransitionToBridgeIdle()voidonTransitionToBridgeBusy()voidonBridgeDestroyed()-
Methods inherited from class com.wix.detox.reactnative.idlingresources.DetoxBaseIdlingResource
isIdleNow, pause, resume -
Methods inherited from class androidx.test.espresso.IdlingResource
isIdleNow -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onDetach
void onDetach()
-
getDescription
@NotNull() IdlingResourceDescription getDescription()
Returns a descriptive representation of the resource.
-
registerIdleTransitionCallback
void registerIdleTransitionCallback(IdlingResource.ResourceCallback callback)
-
onTransitionToBridgeIdle
void onTransitionToBridgeIdle()
-
onTransitionToBridgeBusy
void onTransitionToBridgeBusy()
-
onBridgeDestroyed
void onBridgeDestroyed()
-
-
-
-