Text

data class Text(val startMicros: Long, val endMicros: Long, val spans: List<StyledSpan>, val layout: CueLayout = CueLayout(), val layer: Int = 0) : SubtitleCue

Constructors

Link copied to clipboard
constructor(startMicros: Long, endMicros: Long, spans: List<StyledSpan>, layout: CueLayout = CueLayout(), layer: Int = 0)

Properties

Link copied to clipboard
open override val endMicros: Long

When the cue stops being visible. The cue shows from startMicros up to, but not including, this time.

Link copied to clipboard
open override val layer: Int

Ordering hint from the source. Higher values are drawn on top.

Link copied to clipboard
Link copied to clipboard

The cue's text with all styling removed. Useful for accessibility and for logging.

Link copied to clipboard
Link copied to clipboard
open override val startMicros: Long

When the cue becomes visible, in microseconds on the media timeline.