Package 

Class NetworkIdlingResource

  • All Implemented Interfaces:
    android.view.Choreographer.FrameCallback , androidx.test.espresso.IdlingResource , com.wix.detox.reactnative.idlingresources.DescriptiveIdlingResource

    
    public class NetworkIdlingResource
    extends DetoxBaseIdlingResource implements Choreographer.FrameCallback
                        

    Created by simonracz on 09/10/2017. Idling Resource which monitors React Native's OkHttpClient.

    Must call stop() on it, before removing it from Espresso.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void setURLBlacklist(List<String> urls) Must be called on the UI thread.
      String getName()
      IdlingResourceDescription getDescription() Returns a descriptive representation of the resource.
      void registerIdleTransitionCallback(IdlingResource.ResourceCallback callback)
      void doFrame(long frameTimeNanos)
      • 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
    • Constructor Detail

      • NetworkIdlingResource

        NetworkIdlingResource(ReactContext reactContext)
      • NetworkIdlingResource

        NetworkIdlingResource(Dispatcher dispatcher)