-
- All Implemented Interfaces:
-
androidx.test.espresso.IdlingResource
,com.facebook.react.bridge.NotThreadSafeBridgeIdleDebugListener
,com.wix.detox.espresso.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 void
onDetach()
String
getName()
String
getDebugName()
Map<String, Object>
getBusyHint()
void
registerIdleTransitionCallback(IdlingResource.ResourceCallback callback)
void
onTransitionToBridgeIdle()
void
onTransitionToBridgeBusy()
void
onBridgeDestroyed()
-
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()
-
getDebugName
@NonNull() String getDebugName()
-
getBusyHint
@Nullable() Map<String, Object> getBusyHint()
-
registerIdleTransitionCallback
void registerIdleTransitionCallback(IdlingResource.ResourceCallback callback)
-
onTransitionToBridgeIdle
void onTransitionToBridgeIdle()
-
onTransitionToBridgeBusy
void onTransitionToBridgeBusy()
-
onBridgeDestroyed
void onBridgeDestroyed()
-
-
-
-