Motion

data class Motion(val delayBeforeNext: Long = 80, val repeat: Repeat = Repeat.Continuous, val onComplete: () -> Unit = {}) : ListDisplayStyle(source)

A motion style that animates list items with a delay between each item's appearance.

Constructors

Link copied to clipboard
constructor(delayBeforeNext: Long = 80, repeat: Repeat = Repeat.Continuous, onComplete: () -> Unit = {})

Properties

Link copied to clipboard

The delay in milliseconds before displaying the next item.

Link copied to clipboard
val onComplete: () -> Unit

Callback invoked when the entire list animation completes.

Link copied to clipboard

Defines how often the motion animation repeats.

Functions

Link copied to clipboard
open override fun toString(): String