setRepeatCount

fun setRepeatCount(repeatCount: Int)

Set the number of times to repeat the animation.

If the animation is already running, any iterations that have already occurred will count towards the new count.

NOTE: This method matches the behavior of AnimatedImageDrawable.setRepeatCount. i.e. setting repeatCount to 2 will result in the animation playing 3 times. Setting repeatCount to 0 will result in the animation playing once.

Default: REPEAT_INFINITE