AppenderTextSequencer

class AppenderTextSequencer(var msBetweenCharacters: Long, listener: (characters: List<Char>) -> Unit) : TextSequencer

Provides a TextSequencer that is time based and dispatches lists of Char to be appended. At each step of the sequence a list of Char will be dispatched to the listener. The delay between characters must be specified, in milliseconds, with msBetweenCharacters. A listener must be provided.

Constructors

Link copied to clipboard
constructor(msBetweenCharacters: Long, listener: (characters: List<Char>) -> Unit)

Properties

Link copied to clipboard
open override var msBetweenCharacters: Long

Get or set the delay between characters, in milliseconds.

Link copied to clipboard
open override val sequencing: Boolean

Get if sequencing is currently running.

Functions

Link copied to clipboard
open override fun cancel()

Cancel all sequencing.

Link copied to clipboard
open override fun requestAll()

Request all characters now.

Link copied to clipboard
open override fun sequence(frame: TextFrame)

Start sequencing characters for a specified frame.