-
- All Implemented Interfaces:
-
android.view.Choreographer.FrameCallback
,androidx.test.espresso.IdlingResource
,com.wix.detox.espresso.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 Map<String, Object>
getBusyHint()
String
getName()
String
getDebugName()
boolean
isIdleNow()
void
registerIdleTransitionCallback(IdlingResource.ResourceCallback callback)
void
doFrame(long frameTimeNanos)
-
-
Constructor Detail
-
AnimatedModuleIdlingResource
AnimatedModuleIdlingResource(Object reactContext)
-
-
Method Detail
-
getBusyHint
@Nullable() Map<String, Object> getBusyHint()
-
getDebugName
@NonNull() String getDebugName()
-
isIdleNow
boolean isIdleNow()
-
registerIdleTransitionCallback
void registerIdleTransitionCallback(IdlingResource.ResourceCallback callback)
-
doFrame
void doFrame(long frameTimeNanos)
-
-
-
-