TvInputService.Session.NotifyTrackSelected(TvTrackInfoType, String) Method

Definition

Sends the type and ID of a selected track.

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

Parameters

type
TvTrackInfoType

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

trackId
String

The ID of the selected track.

Attributes

Remarks

Sends the type and ID of a selected track. This is used to inform the application that a specific track is selected. The TV input service must call this method as soon as a track is selected either by default or in response to a call to #onSelectTrack. The selected track ID for a given type is maintained in the framework until the next call to this method even after the entire track list is updated (but is reset when the session is tuned to a new channel), so care must be taken not to result in an obsolete track ID.

Java documentation for android.media.tv.TvInputService.Session.notifyTrackSelected(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