AnnotationPosition


public sealed class AnnotationPosition


Represents the position of a text annotation (i.e. ruby and emphasis marks) relative to the base text.

Summary

Public fields

final int

The integer representation of this position, used for serialization.

static final @NonNull AnnotationPosition

For horizontal text, the text annotation should be positioned below the base text.

static final @NonNull AnnotationPosition

For horizontal text, the text annotation should be positioned above the base text.

static final @NonNull AnnotationPosition

The text annotation position is unknown.

Protected constructors

AnnotationPosition(int value)

Public methods

static final @NonNull AnnotationPosition
fromInt(int value)

Public fields

value

Added in 1.0.0-alpha05
public final int value

The integer representation of this position, used for serialization.

After

public static final @NonNull AnnotationPosition After

For horizontal text, the text annotation should be positioned below the base text.

For vertical text, it should be positioned to the left. See the tts:rubyPosition attribute in TTML2 for more information.

Before

public static final @NonNull AnnotationPosition Before

For horizontal text, the text annotation should be positioned above the base text.

For vertical text, it should be positioned to the right. See the tts:rubyPosition attribute in TTML2 for more information.

Unknown

public static final @NonNull AnnotationPosition Unknown

The text annotation position is unknown.

Protected constructors

AnnotationPosition

protected AnnotationPosition(int value)

Public methods

fromInt

Added in 1.0.0-alpha05
public static final @NonNull AnnotationPosition fromInt(int value)