TvRecordingClient.Tune 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.
Overloads
Tune(String, Uri) |
Tunes to a given channel for TV program recording. |
Tune(String, Uri, Bundle) |
Tunes to a given channel for TV program recording. |
Tune(String, Uri)
Tunes to a given channel for TV program recording.
[Android.Runtime.Register("tune", "(Ljava/lang/String;Landroid/net/Uri;)V", "GetTune_Ljava_lang_String_Landroid_net_Uri_Handler", ApiSince=24)]
public virtual void Tune (string? inputId, Android.Net.Uri? channelUri);
[<Android.Runtime.Register("tune", "(Ljava/lang/String;Landroid/net/Uri;)V", "GetTune_Ljava_lang_String_Landroid_net_Uri_Handler", ApiSince=24)>]
abstract member Tune : string * Android.Net.Uri -> unit
override this.Tune : string * Android.Net.Uri -> unit
Parameters
- inputId
- String
The ID of the TV input for the given channel.
- channelUri
- Uri
The URI of a channel.
- Attributes
Remarks
Tunes to a given channel for TV program recording. The first tune request will create a new recording session for the corresponding TV input and establish a connection between the application and the session. If recording has already started in the current recording session, this method throws an exception.
The application may call this method before starting or after stopping recording, but not during recording.
The recording session will respond by calling RecordingCallback#onTuned(Uri)
if the tune request was fulfilled, or RecordingCallback#onError(int)
otherwise.
Java documentation for android.media.tv.TvRecordingClient.tune(java.lang.String, 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
Tune(String, Uri, Bundle)
Tunes to a given channel for TV program recording.
[Android.Runtime.Register("tune", "(Ljava/lang/String;Landroid/net/Uri;Landroid/os/Bundle;)V", "GetTune_Ljava_lang_String_Landroid_net_Uri_Landroid_os_Bundle_Handler", ApiSince=24)]
public virtual void Tune (string? inputId, Android.Net.Uri? channelUri, Android.OS.Bundle? params);
[<Android.Runtime.Register("tune", "(Ljava/lang/String;Landroid/net/Uri;Landroid/os/Bundle;)V", "GetTune_Ljava_lang_String_Landroid_net_Uri_Landroid_os_Bundle_Handler", ApiSince=24)>]
abstract member Tune : string * Android.Net.Uri * Android.OS.Bundle -> unit
override this.Tune : string * Android.Net.Uri * Android.OS.Bundle -> unit
Parameters
- inputId
- String
The ID of the TV input for the given channel.
- 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
Tunes to a given channel for TV program recording. The first tune request will create a new recording session for the corresponding TV input and establish a connection between the application and the session. If recording has already started in the current recording session, this method throws an exception. This can be used to provide domain-specific features that are only known between certain client and their TV inputs.
The application may call this method before starting or after stopping recording, but not during recording.
The recording session will respond by calling RecordingCallback#onTuned(Uri)
if the tune request was fulfilled, or RecordingCallback#onError(int)
otherwise.
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.