Share via


TvInteractiveAppService.Session.RequestStartRecording(String, Uri) Method

Definition

Requests starting of recording

[Android.Runtime.Register("requestStartRecording", "(Ljava/lang/String;Landroid/net/Uri;)V", "GetRequestStartRecording_Ljava_lang_String_Landroid_net_Uri_Handler", ApiSince=34)]
public virtual void RequestStartRecording (string requestId, Android.Net.Uri? programUri);
[<Android.Runtime.Register("requestStartRecording", "(Ljava/lang/String;Landroid/net/Uri;)V", "GetRequestStartRecording_Ljava_lang_String_Landroid_net_Uri_Handler", ApiSince=34)>]
abstract member RequestStartRecording : string * Android.Net.Uri -> unit
override this.RequestStartRecording : string * Android.Net.Uri -> unit

Parameters

requestId
String

The ID of this request which is used to match the corresponding response. The request ID in #onRecordingStarted(String, String) for this request is the same as the ID sent here. This should be defined by the TvInteractiveAppService and can be any string. Should this API be called with the same requestId twice, both requests should be handled regardless by the TV application.

programUri
Uri

The URI for the TV program to record, built by TvContract#buildProgramUri(long). Can be null.

Attributes

Remarks

Requests starting of recording

This is used to request the active android.media.tv.TvRecordingClient to call android.media.tv.TvRecordingClient#startRecording(Uri) with the provided programUri. A non-null programUri implies the started recording should be of that specific program, whereas null programUri does not impose such a requirement and the recording can span across multiple TV programs.

Java documentation for android.media.tv.interactive.TvInteractiveAppService.Session.requestStartRecording(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