public class NetworkIdlingResource
extends DetoxBaseIdlingResource
Idling Resource which monitors React Native's OkHttpClient.
Must call stop() on it, before removing it from Espresso.
| Constructor and Description |
|---|
NetworkIdlingResource(com.facebook.react.bridge.ReactContext reactContext) |
NetworkIdlingResource(okhttp3.Dispatcher dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkIdle() |
void |
doFrame(long frameTimeNanos) |
java.lang.String |
getName() |
protected void |
notifyIdle() |
void |
registerIdleTransitionCallback(androidx.test.espresso.IdlingResource.ResourceCallback callback) |
static void |
setURLBlacklist(java.util.ArrayList<java.lang.String> urls)
Must be called on the UI thread.
|
checkIdle, isIdleNow, notifyIdle, pause, resumepublic NetworkIdlingResource(@NonNull
com.facebook.react.bridge.ReactContext reactContext)
public NetworkIdlingResource(@NonNull
okhttp3.Dispatcher dispatcher)
public static void setURLBlacklist(java.util.ArrayList<java.lang.String> urls)
Must be called on the UI thread.
urls - org.jetbrains.dokka.NodeRenderContent@83a2400: list of regexes of blacklisted urlspublic java.lang.String getName()
protected boolean checkIdle()
public void registerIdleTransitionCallback(androidx.test.espresso.IdlingResource.ResourceCallback callback)
public void doFrame(long frameTimeNanos)
protected void notifyIdle()