loop

fun loop(animation: AnimatedAnimation, repeatCount: Int = -1): AnimatedAnimation

Returns LoopAnimation ready for running AnimatedAnimation object repeated @repeatCount times. By default it runs infinite number of times.