다음을 통해 공유


TvInputService.Session.NotifyTracksChanged(IList<TvTrackInfo>) Method

Definition

Sends the list of all audio/video/subtitle tracks.

[Android.Runtime.Register("notifyTracksChanged", "(Ljava/util/List;)V", "GetNotifyTracksChanged_Ljava_util_List_Handler")]
public virtual void NotifyTracksChanged (System.Collections.Generic.IList<Android.Media.TV.TvTrackInfo>? tracks);
[<Android.Runtime.Register("notifyTracksChanged", "(Ljava/util/List;)V", "GetNotifyTracksChanged_Ljava_util_List_Handler")>]
abstract member NotifyTracksChanged : System.Collections.Generic.IList<Android.Media.TV.TvTrackInfo> -> unit
override this.NotifyTracksChanged : System.Collections.Generic.IList<Android.Media.TV.TvTrackInfo> -> unit

Parameters

tracks
IList<TvTrackInfo>

A list which includes track information.

Attributes

Remarks

Sends the list of all audio/video/subtitle tracks. The is used by the framework to maintain the track information for a given session, which in turn is used by TvView#getTracks for the application to retrieve metadata for a given track type. The TV input service must call this method as soon as the track information becomes available or is updated. Note that in a case where a part of the information for a certain track is updated, it is not necessary to create a new TvTrackInfo object with a different track ID.

Java documentation for android.media.tv.TvInputService.Session.notifyTracksChanged(java.util.List<android.media.tv.TvTrackInfo>).

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