CastTrackSelector.CastTrackSelectorRequest


class CastTrackSelector.CastTrackSelectorRequest


Holds parameters associated with a evaluation request.

Summary

Public constructors

CastTrackSelectorRequest(
    mediaItemId: Int,
    trackSelectionParameters: TrackSelectionParameters!,
    trackGroupList: ImmutableList<TrackGroup!>!,
    mediaTracks: ImmutableList<MediaTrack!>!,
    currentlySelectedTrackGroups: ImmutableSet<TrackGroup!>!,
    @CastTrackSelector.TrackSelectionRequestReason trackSelectionRequestReason: Int
)

Creates a new instance.

Public functions

CastTrackSelector.CastTrackSelectorResult.Builder!

Returns a CastTrackSelectorResult.Builder that's already initialized with the values from this CastTrackSelectorRequest, so that clients can easily limit changes to fields they want to modify.

Boolean
equals(o: Any?)
Int

Public properties

ImmutableSet<TrackGroup!>!

The currently selected track groups, as reported by Cast remote media client.

Int

The id of the active Cast media item when the evaluation is made.

ImmutableList<MediaTrack!>!

The Cast media tracks, where positions match the corresponding trackGroupList.

ImmutableList<TrackGroup!>!

The list of available track groups, where positions match the track group's corresponding Cast media tracks.

TrackSelectionParameters!

The currently active track selection parameters.

Int

The reason for this track selection evaluation request.

Public constructors

CastTrackSelectorRequest

CastTrackSelectorRequest(
    mediaItemId: Int,
    trackSelectionParameters: TrackSelectionParameters!,
    trackGroupList: ImmutableList<TrackGroup!>!,
    mediaTracks: ImmutableList<MediaTrack!>!,
    currentlySelectedTrackGroups: ImmutableSet<TrackGroup!>!,
    @CastTrackSelector.TrackSelectionRequestReason trackSelectionRequestReason: Int
)

Creates a new instance.

Parameters
mediaItemId: Int

See mediaItemId.

trackSelectionParameters: TrackSelectionParameters!

See trackSelectionParameters.

trackGroupList: ImmutableList<TrackGroup!>!

See trackGroupList.

mediaTracks: ImmutableList<MediaTrack!>!

See mediaTracks.

currentlySelectedTrackGroups: ImmutableSet<TrackGroup!>!

See currentlySelectedTrackGroups.

@CastTrackSelector.TrackSelectionRequestReason trackSelectionRequestReason: Int

See trackSelectionRequestReason.

Public functions

buildResultUpon

fun buildResultUpon(): CastTrackSelector.CastTrackSelectorResult.Builder!

Returns a CastTrackSelectorResult.Builder that's already initialized with the values from this CastTrackSelectorRequest, so that clients can easily limit changes to fields they want to modify.

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

currentlySelectedTrackGroups

val currentlySelectedTrackGroupsImmutableSet<TrackGroup!>!

The currently selected track groups, as reported by Cast remote media client.

mediaItemId

val mediaItemIdInt

The id of the active Cast media item when the evaluation is made.

mediaTracks

val mediaTracksImmutableList<MediaTrack!>!

The Cast media tracks, where positions match the corresponding trackGroupList.

trackGroupList

val trackGroupListImmutableList<TrackGroup!>!

The list of available track groups, where positions match the track group's corresponding Cast media tracks.

trackSelectionParameters

val trackSelectionParametersTrackSelectionParameters!

The currently active track selection parameters.

trackSelectionRequestReason

@CastTrackSelector.TrackSelectionRequestReason
val trackSelectionRequestReasonInt

The reason for this track selection evaluation request.

Can be used to determine whether to change the selections (for example, in response to new TrackSelectionParameters), or the trackSelectionParameters (for example, in response to a receiver-side track selection change).