TvView.GetSelectedTrack(TvTrackInfoType) Method

Definition

Returns the ID of the selected track for a given type.

[Android.Runtime.Register("getSelectedTrack", "(I)Ljava/lang/String;", "GetGetSelectedTrack_IHandler")]
public virtual string? GetSelectedTrack (Android.Media.TV.TvTrackInfoType type);
[<Android.Runtime.Register("getSelectedTrack", "(I)Ljava/lang/String;", "GetGetSelectedTrack_IHandler")>]
abstract member GetSelectedTrack : Android.Media.TV.TvTrackInfoType -> string
override this.GetSelectedTrack : Android.Media.TV.TvTrackInfoType -> string

Parameters

type
TvTrackInfoType

The type of the selected tracks. The type can be TvTrackInfo#TYPE_AUDIO, TvTrackInfo#TYPE_VIDEO or TvTrackInfo#TYPE_SUBTITLE.

Returns

Attributes

Remarks

Returns the ID of the selected track for a given type. Returns null if the information is not available or the track is not selected.

Java documentation for android.media.tv.TvView.getSelectedTrack(int).

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