Sdílet prostřednictvím


TvInputService.RecordingSession.OnTune Method

Definition

Overloads

OnTune(Uri)

Called when the application requests to tune to a given channel for TV program recording.

OnTune(Uri, Bundle)

Called when the application requests to tune to a given channel for TV program recording.

OnTune(Uri)

Called when the application requests to tune to a given channel for TV program recording.

[Android.Runtime.Register("onTune", "(Landroid/net/Uri;)V", "GetOnTune_Landroid_net_Uri_Handler", ApiSince=24)]
public abstract void OnTune (Android.Net.Uri? channelUri);
[<Android.Runtime.Register("onTune", "(Landroid/net/Uri;)V", "GetOnTune_Landroid_net_Uri_Handler", ApiSince=24)>]
abstract member OnTune : Android.Net.Uri -> unit

Parameters

channelUri
Uri

The URI of a channel.

Attributes

Remarks

Called when the application requests to tune to a given channel for TV program recording.

The application may call this method before starting or after stopping recording, but not during recording.

The session must call #notifyTuned(Uri) if the tune request was fulfilled, or #notifyError(int) otherwise.

Java documentation for android.media.tv.TvInputService.RecordingSession.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)

Called when the application requests to tune to a given channel for TV program recording.

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

Parameters

channelUri
Uri

The URI of a 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.

Attributes

Remarks

Called when the application requests to tune to a given channel for TV program recording. Override this method in order to handle domain-specific features that are only known between certain TV inputs and their clients.

The application may call this method before starting or after stopping recording, but not during recording. The default implementation calls #onTune(Uri).

The session must call #notifyTuned(Uri) if the tune request was fulfilled, or #notifyError(int) otherwise.

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