TvInputService.Session.OnTune Method

Definition

Overloads

OnTune(Uri)

Tunes to a given channel.

OnTune(Uri, Bundle)

Tunes to a given channel.

OnTune(Uri)

Tunes to a given channel.

[Android.Runtime.Register("onTune", "(Landroid/net/Uri;)Z", "GetOnTune_Landroid_net_Uri_Handler")]
public abstract bool OnTune (Android.Net.Uri? channelUri);
[<Android.Runtime.Register("onTune", "(Landroid/net/Uri;)Z", "GetOnTune_Landroid_net_Uri_Handler")>]
abstract member OnTune : Android.Net.Uri -> bool

Parameters

channelUri
Uri

The URI of the channel.

Returns

true if the tuning was successful, false otherwise.

Attributes

Remarks

Tunes to a given channel.

No video will be displayed until #notifyVideoAvailable() is called. Also, #notifyVideoUnavailable(int) should be called when the TV input cannot continue playing the given channel.

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

OnTune(Uri, Bundle)

Tunes to a given channel.

[Android.Runtime.Register("onTune", "(Landroid/net/Uri;Landroid/os/Bundle;)Z", "GetOnTune_Landroid_net_Uri_Landroid_os_Bundle_Handler", ApiSince=24)]
public virtual bool OnTune (Android.Net.Uri? channelUri, Android.OS.Bundle? params);
[<Android.Runtime.Register("onTune", "(Landroid/net/Uri;Landroid/os/Bundle;)Z", "GetOnTune_Landroid_net_Uri_Landroid_os_Bundle_Handler", ApiSince=24)>]
abstract member OnTune : Android.Net.Uri * Android.OS.Bundle -> bool
override this.OnTune : Android.Net.Uri * Android.OS.Bundle -> bool

Parameters

channelUri
Uri

The URI of the channel.

params
Bundle

Domain-specific data for this tune request. Keys <em>must</em> be a scoped name, i.e. prefixed with a package name you own, so that different developers will not create conflicting keys.

Returns

true if the tuning was successful, false otherwise.

Attributes

Remarks

Tunes to a given channel. Override this method in order to handle domain-specific features that are only known between certain TV inputs and their clients.

The default implementation calls #onTune(Uri).

Java documentation for android.media.tv.TvInputService.Session.onTune(android.net.Uri, android.os.Bundle).

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