Cue

class Cue(val start: Double, val end: Double, val text: String?, val html: String?, val image: Bitmap?, val textAlignment: Layout.Alignment?, val line: Float, val lineType: Cue.LineType, val lineAnchor: Cue.AnchorType, val fractionalPosition: Float, val positionAnchor: Cue.AnchorType, val size: Float, val bitmapHeight: Float, val isWindowColorSet: Boolean, val windowColor: Int, val verticalType: Cue.VerticalType)

Represents a cue of a subtitle track.

See also

Constructors

Link copied to clipboard
constructor(start: Double, end: Double, text: String?, html: String?)
constructor(start: Double, end: Double, image: Bitmap?)
constructor(start: Double, end: Double, text: String?, html: String?, image: Bitmap?, textAlignment: Layout.Alignment?, line: Float, lineType: Cue.LineType, lineAnchor: Cue.AnchorType, fractionalPosition: Float, positionAnchor: Cue.AnchorType, size: Float, bitmapHeight: Float, isWindowColorSet: Boolean, windowColor: Int, verticalType: Cue.VerticalType)

Types

Link copied to clipboard

Represents the available anchor types for the cue.

Link copied to clipboard
object Companion
Link copied to clipboard

Represents the available line types for the cue.

Link copied to clipboard

Represents the vertical formatting for the cue.

Properties

Link copied to clipboard

The bitmap height as a fraction of the of the viewport size, or DIMEN_UNSET if the bitmap should be displayed at its natural height given the bitmap dimensions and the specified size.

Link copied to clipboard
val end: Double

The end time of the Cue in seconds.

Link copied to clipboard

The fractional position of the positionAnchor of the cue within the viewport in the orthogonal direction to line, or DIMEN_UNSET.

Link copied to clipboard
val html: String?

The cue text as HTML.

Link copied to clipboard

The cue image.

Link copied to clipboard

True iff the windowColor property is set.

Link copied to clipboard
val line: Float

The position of the line anchor of the cue box within the viewport in orthogonal direction to the writing direction, or DIMEN_UNSET. Interpretation depends on the value of lineType.

Link copied to clipboard

The type of the value from line.

Link copied to clipboard
val size: Float

The size of the cue in the writing direction specified as a fraction of the viewport size in that direction, or DIMEN_UNSET.

Link copied to clipboard

The start time of the Cue in seconds.

Link copied to clipboard
val text: String?

The cue text.

Link copied to clipboard

The alignment of the cue text.

Link copied to clipboard

The fill color of the window.