Sliding

data class Sliding(val direction: SlidingDirection = SlidingDirection.TOWARDS_START, val duration: Long = 3000, val repeat: Repeat = Repeat.Continuous, val onComplete: () -> Unit = {}) : DisplayStyle(source)

A sliding display style that moves the text in a specified direction.

Constructors

Link copied to clipboard
constructor(direction: SlidingDirection = SlidingDirection.TOWARDS_START, duration: Long = 3000, repeat: Repeat = Repeat.Continuous, onComplete: () -> Unit = {})

Properties

Link copied to clipboard

The direction in which the text slides (e.g., towards start).

Link copied to clipboard

Duration in milliseconds for the sliding animation.

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

Callback invoked when the sliding animation completes.

Link copied to clipboard

Defines how often the sliding animation repeats.

Functions

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