Skip to content

//paparazzi/app.cash.paparazzi/InstantAnimationsRule

InstantAnimationsRule

[jvm]\ class InstantAnimationsRule : TestRule

Sets animation duration scale to 0 so all animations run instantly. Use this with Paparazzi to skip animations and snapshot their terminal state.

Note that animation side effects are still performed, including calls like AnimatorListener.onAnimationEnd. This way views from fade-ins and moves are rendered as they do when the animations complete.

Constructors

InstantAnimationsRule [jvm]
constructor()

Functions

Name Summary
apply [jvm]
open override fun apply(base: Statement, description: Description): Statement