Class TrackUpdateBuilder
-
- All Implemented Interfaces:
public final class TrackUpdateBuilderAllows you to update the playing track with only the fields that you wish to update.
-
-
Constructor Summary
Constructors Constructor Description TrackUpdateBuilder()
-
Method Summary
Modifier and Type Method Description final TrackUpdateBuildersetEncoded(String encoded)Sets the encoded track to be played. final TrackUpdateBuildersetIdentifier(String identifier)Set the identifier on the player. final TrackUpdateBuildersetUserData(Object userData)final PlayerUpdateTrackbuild()-
-
Method Detail
-
setEncoded
final TrackUpdateBuilder setEncoded(String encoded)
Sets the encoded track to be played. This will override the identifier if previously set.
- Parameters:
encoded- The encoded track to be played.- Returns:
The updated builder, useful for chaining
-
setIdentifier
final TrackUpdateBuilder setIdentifier(String identifier)
Set the identifier on the player. This will override the encoded track if previously set.
- Parameters:
identifier- the identifier to be played- Returns:
The updated builder, useful for chaining
-
setUserData
final TrackUpdateBuilder setUserData(Object userData)
-
build
final PlayerUpdateTrack build()
-
-
-
-