java.lang.Object | |
↳ | com.google.android.gms.cast.MediaTrack.Builder |
A builder for MediaTrack
objects.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new Builder with the given track ID and type.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builds and returns the
MediaTrack object.
| |||||||||||
Sets the track content ID.
| |||||||||||
Sets the track content type.
| |||||||||||
Sets the track's custom data object.
| |||||||||||
Sets the track language from a Locale in
RFC-5464 format.
| |||||||||||
Sets the
RFC-5464 formatted
track language.
| |||||||||||
Sets the track name.
| |||||||||||
Sets the track subtype with one of the
SUBTYPE_ constants.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a new Builder with the given track ID and type.
trackId | The unique ID of the media track. |
---|---|
trackType | The type of the track; one of the TYPE_ constants. |
IllegalArgumentException | If the track type is invalid. |
---|
Sets the track's custom data object.
Sets the track language from a Locale in
RFC-5464
format.
Sets the track subtype with one of the SUBTYPE_
constants.
IllegalArgumentException | If the subtype is invalid. |
---|