Class TextTrackDescription.Builder
-
- All Implemented Interfaces:
public class TextTrackDescription.Builder
The builder for TextTrackDescription.
-
-
Constructor Summary
Constructors Constructor Description TextTrackDescription.Builder(String src)
Creates a builder for a TextTrackDescription.
-
Method Summary
Modifier and Type Method Description TextTrackDescription.Builder
kind(@NonNull() TextTrackKind kind)
Sets the kind. TextTrackDescription.Builder
srclang(@NonNull() String srclang)
Sets the main language. TextTrackDescription.Builder
label(@NonNull() String label)
Sets the label for the track which can be used to identify it. TextTrackDescription
build()
Builds the TextTrackDescription. TextTrackDescription.Builder
isDefault(boolean isDefault)
Sets whether this text track is the default one. -
-
Constructor Detail
-
TextTrackDescription.Builder
TextTrackDescription.Builder(String src)
Creates a builder for a TextTrackDescription.- Parameters:
src
- The source URI of the text track.
-
-
Method Detail
-
kind
@NonNull() TextTrackDescription.Builder kind(@NonNull() TextTrackKind kind)
Sets the kind.
- For all possibilities, see TextTrackKind.
- Parameters:
kind
- The TextTrackKind.
-
srclang
@NonNull() TextTrackDescription.Builder srclang(@NonNull() String srclang)
Sets the main language.
- Parameters:
srclang
- The main language.
-
label
@NonNull() TextTrackDescription.Builder label(@NonNull() String label)
Sets the label for the track which can be used to identify it.
- Parameters:
label
- The label for the track which can be used to identify it.
-
build
@NonNull() TextTrackDescription build()
Builds the TextTrackDescription.
-
isDefault
@NonNull() TextTrackDescription.Builder isDefault(boolean isDefault)
Sets whether this text track is the default one.
- Parameters:
isDefault
- Whether the text track is the default one.
-
-
-
-