AnnotationPosition


public sealed class AnnotationPosition


Properties of a text annotation (i.e. ruby and emphasis marks).

Summary

Public fields

final int
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-alpha04
public final int value

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-alpha04
public static final @NonNull AnnotationPosition fromInt(int value)