Enum TextTrackMode
-
- All Implemented Interfaces:
public enum TextTrackModeThe mode of the text track.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLEDThe track is disabled.
- A disabled track is not displayed and exposes no active cues, nor fires cue events.
HIDDENThe track is hidden.
- A hidden track is not displayed but exposes active cues and fires cue events.
SHOWINGThe track is showing.
- A showing track is displayed, exposes active cues and fires cue events.
-
Method Summary
Modifier and Type Method Description static TextTrackModefrom(String mode)Creates a text track mode from a textual representation, when possible. StringtoString()static Array<TextTrackMode>values()Returns an array containing the constants of this enum type, in the order they're declared. static TextTrackModevalueOf(String name)Returns the enum constant of this type with the specified name. StringgetMode()The textual representation of the text track mode. -
-
Method Detail
-
from
@Nullable() static TextTrackMode from(String mode)
Creates a text track mode from a textual representation, when possible.
- Parameters:
mode- The textual representation of the text track mode.- Returns:
The text track mode. (Nullable)
-
values
static Array<TextTrackMode> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static TextTrackMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-