Scrolling

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

A scrolling display style that scrolls the text in a specified direction.

Constructors

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

Properties

Link copied to clipboard

The direction in which the text scrolls (e.g., towards top).

Link copied to clipboard

Duration in milliseconds for the scrolling animation.

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

Callback invoked when the scrolling animation completes.

Link copied to clipboard

Defines how often the scrolling animation repeats.

Functions

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