-
- All Implemented Interfaces:
-
android.view.Choreographer.FrameCallback,androidx.test.espresso.IdlingResource,com.wix.detox.reactnative.idlingresources.DescriptiveIdlingResource
public class AnimatedModuleIdlingResource implements DescriptiveIdlingResource, Choreographer.FrameCallback
Espresso IdlingResource for React Native's Animated Module.
Hooks up to React Native internals to monitor the state of the animations.
This Idling Resource is inherently tied to the UI Module IR. It must be registered after the UI Module IR. This order is not enforced now.
-
-
Constructor Summary
Constructors Constructor Description AnimatedModuleIdlingResource(Object reactContext)
-
Method Summary
Modifier and Type Method Description StringgetName()IdlingResourceDescriptiongetDescription()Returns a descriptive representation of the resource. booleanisIdleNow()voidregisterIdleTransitionCallback(IdlingResource.ResourceCallback callback)voiddoFrame(long frameTimeNanos)-
-
Constructor Detail
-
AnimatedModuleIdlingResource
AnimatedModuleIdlingResource(Object reactContext)
-
-
Method Detail
-
getDescription
@NotNull() IdlingResourceDescription getDescription()
Returns a descriptive representation of the resource.
-
isIdleNow
boolean isIdleNow()
-
registerIdleTransitionCallback
void registerIdleTransitionCallback(IdlingResource.ResourceCallback callback)
-
doFrame
void doFrame(long frameTimeNanos)
-
-
-
-