共用方式為


TvInputService.Session.NotifyChannelRetuned(Uri) Method

Definition

Informs the application that the current channel is re-tuned for some reason and the session now displays the content from a new channel.

[Android.Runtime.Register("notifyChannelRetuned", "(Landroid/net/Uri;)V", "GetNotifyChannelRetuned_Landroid_net_Uri_Handler")]
public virtual void NotifyChannelRetuned (Android.Net.Uri? channelUri);
[<Android.Runtime.Register("notifyChannelRetuned", "(Landroid/net/Uri;)V", "GetNotifyChannelRetuned_Landroid_net_Uri_Handler")>]
abstract member NotifyChannelRetuned : Android.Net.Uri -> unit
override this.NotifyChannelRetuned : Android.Net.Uri -> unit

Parameters

channelUri
Uri

The URI of the new channel.

Attributes

Remarks

Informs the application that the current channel is re-tuned for some reason and the session now displays the content from a new channel. This is used to handle special cases such as when the current channel becomes unavailable, it is necessary to send the user to a certain channel or the user changes channel in some other way (e.g. by using a dedicated remote).

Java documentation for android.media.tv.TvInputService.Session.notifyChannelRetuned(android.net.Uri).

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