EditTracksInfoData

public class EditTracksInfoData extends Object
implements Parcelable RequestData

Data structure for edit track info command requests.

Inherited Constant Summary

Public Method Summary

long[]
getActiveTrackIds()
Array of the track IDs that should be active.
JSONObject
getCustomData()
Returns the custom data.
Boolean
getEnableTextTracks()
Flag to enable or disable text tracks.
Boolean
getIsSuggestedLanguage()
Returns true if the provided language was not explicit user request, but rather inferred from used language in voice query.
String
getLanguage()
Language for the tracks that should be active.
TextTrackStyle
getTextTrackStyle()
The requested text track style.
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

Public Methods

public long[] getActiveTrackIds ()

Array of the track IDs that should be active.

  • If null, the active tracks will not change.
  • If the array is empty, no track will be active.

public JSONObject getCustomData ()

Returns the custom data.

public Boolean getEnableTextTracks ()

Flag to enable or disable text tracks.

  • If false, all text tracks should be disabled.
  • If true, the previous active text tracks (or the first text track if no previous text tracks available) should be enabled.
This flag should be ignored if activeTrackIds or language is provided.

This may return null if the request doesn't require text track enable/disable state change.

public Boolean getIsSuggestedLanguage ()

Returns true if the provided language was not explicit user request, but rather inferred from used language in voice query. It allows receiver apps to use user saved preference instead of spoken language.

This may return null if the value is unspecified.

public String getLanguage ()

Language for the tracks that should be active. The language field should take precedence over getActiveTrackIds() if both are specified.

This may return null if the request doesn't require language change.

public TextTrackStyle getTextTrackStyle ()

The requested text track style.

If null, the existing style should be used (if no style was provided in previous calls, it should be the default receiver style).

public void writeToParcel (Parcel out, int flags)