TvInputService.Session.OnSelectTrack(TvTrackInfoType, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Selects a given track.
[Android.Runtime.Register("onSelectTrack", "(ILjava/lang/String;)Z", "GetOnSelectTrack_ILjava_lang_String_Handler")]
public virtual bool OnSelectTrack (Android.Media.TV.TvTrackInfoType type, string? trackId);
[<Android.Runtime.Register("onSelectTrack", "(ILjava/lang/String;)Z", "GetOnSelectTrack_ILjava_lang_String_Handler")>]
abstract member OnSelectTrack : Android.Media.TV.TvTrackInfoType * string -> bool
override this.OnSelectTrack : Android.Media.TV.TvTrackInfoType * string -> bool
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.
Returns
true
if the track selection was successful, false
otherwise.
- Attributes
Remarks
Selects a given track.
If this is done successfully, the implementation should call #notifyTrackSelected
to help applications maintain the up-to-date list of the selected tracks.
Java documentation for android.media.tv.TvInputService.Session.onSelectTrack(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.