-
- All Implemented Interfaces:
-
android.view.Choreographer.FrameCallback
,androidx.test.espresso.IdlingResource
,com.wix.detox.espresso.idlingresources.DescriptiveIdlingResource
public final class UIModuleIdlingResource extends DetoxBaseIdlingResource implements Choreographer.FrameCallback
Espresso IdlingResource for React Native's UI Module. Hooks up to React Native internals to grab the pending ui operations from it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
UIModuleIdlingResource.Companion
-
Field Summary
Fields Modifier and Type Field Description private final AtomicBoolean
paused
-
Constructor Summary
Constructors Constructor Description UIModuleIdlingResource(ReactContext reactContext)
-
Method Summary
Modifier and Type Method Description String
getName()
String
getDebugName()
Map<String, Object>
getBusyHint()
Unit
registerIdleTransitionCallback(IdlingResource.ResourceCallback callback)
Unit
doFrame(Long frameTimeNanos)
-
-
Method Detail
-
getDebugName
String getDebugName()
-
getBusyHint
Map<String, Object> getBusyHint()
-
registerIdleTransitionCallback
Unit registerIdleTransitionCallback(IdlingResource.ResourceCallback callback)
-
-
-
-