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
RFC-5464 formatted
track language. | |||||||||||
Sets the track language from a Locale in
RFC-5464 format. | |||||||||||
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.
Parameters | |
---|---|
trackId |
long :
The unique ID of the media track. |
trackType |
int :
The type of the track; one of the TYPE_ constants. |
Throws | |
---|---|
IllegalArgumentException |
If the track type is invalid. |
Sets the track language from a Locale in
RFC-5464
format.
Parameters | |
---|---|
locale |
Locale
|
Returns | |
---|---|
MediaTrack.Builder |
Sets the track subtype with one of the SUBTYPE_
constants.
Parameters | |
---|---|
subtype |
int
|
Returns | |
---|---|
MediaTrack.Builder |
Throws | |
---|---|
IllegalArgumentException |
If the subtype is invalid. |