Share via


TvView.SelectTrack(TvTrackInfoType, String) Method

Definition

Selects a track.

[Android.Runtime.Register("selectTrack", "(ILjava/lang/String;)V", "GetSelectTrack_ILjava_lang_String_Handler")]
public virtual void SelectTrack (Android.Media.TV.TvTrackInfoType type, string? trackId);
[<Android.Runtime.Register("selectTrack", "(ILjava/lang/String;)V", "GetSelectTrack_ILjava_lang_String_Handler")>]
abstract member SelectTrack : Android.Media.TV.TvTrackInfoType * string -> unit
override this.SelectTrack : Android.Media.TV.TvTrackInfoType * string -> unit

Parameters

type
TvTrackInfoType

The type of the track to select. The type can be TvTrackInfo#TYPE_AUDIO, TvTrackInfo#TYPE_VIDEO or TvTrackInfo#TYPE_SUBTITLE.

trackId
String

The ID of the track to select. null means to unselect the current track for a given type.

Attributes

Remarks

Selects a track.

Java documentation for android.media.tv.TvView.selectTrack(int, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also