ActivityIndicator

class ActivityIndicator(    val imageView: LottieAnimationView,     @RawRes runningResId: Int = R.raw.mimi_lot_load,     @RawRes successResId: Int = R.raw.mimi_lot_check,     @RawRes failureResId: Int = R.raw.mimi_lot_cross)

Takes an ImageView and animates the corresponding vector drawable for the current State.

Constructors

Link copied to clipboard
fun ActivityIndicator(    imageView: LottieAnimationView,     @RawRes runningResId: Int = R.raw.mimi_lot_load,     @RawRes successResId: Int = R.raw.mimi_lot_check,     @RawRes failureResId: Int = R.raw.mimi_lot_cross)

Types

Link copied to clipboard
enum State : Enum<ActivityIndicator.State>

The current state of this ActivityIndicator

Functions

Link copied to clipboard
fun clear()

Clears the resources for the attached ImageView

Link copied to clipboard
fun showAnimation(state: ActivityIndicator.State, revertFirst: Boolean)

Method to transition to the specified State

Properties

Link copied to clipboard
val imageView: LottieAnimationView