다음을 통해 공유


TvRecordingClient.StartRecording Method

Definition

Overloads

StartRecording(Uri)

Starts TV program recording in the current recording session.

StartRecording(Uri, Bundle)

Starts TV program recording in the current recording session.

StartRecording(Uri)

Starts TV program recording in the current recording session.

[Android.Runtime.Register("startRecording", "(Landroid/net/Uri;)V", "GetStartRecording_Landroid_net_Uri_Handler", ApiSince=24)]
public virtual void StartRecording (Android.Net.Uri? programUri);
[<Android.Runtime.Register("startRecording", "(Landroid/net/Uri;)V", "GetStartRecording_Landroid_net_Uri_Handler", ApiSince=24)>]
abstract member StartRecording : Android.Net.Uri -> unit
override this.StartRecording : Android.Net.Uri -> unit

Parameters

programUri
Uri

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

Attributes

Remarks

Starts TV program recording in the current recording session. Recording is expected to start immediately when this method is called. If the current recording session has not yet tuned to any channel, this method throws an exception.

The application may supply the URI for a TV program for filling in program specific data fields in the android.media.tv.TvContract.RecordedPrograms table. 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. In either case, the application must call TvRecordingClient#stopRecording() to stop the recording.

The recording session will respond by calling RecordingCallback#onError(int) if the start request cannot be fulfilled.

Java documentation for android.media.tv.TvRecordingClient.startRecording(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

StartRecording(Uri, Bundle)

Starts TV program recording in the current recording session.

[Android.Runtime.Register("startRecording", "(Landroid/net/Uri;Landroid/os/Bundle;)V", "GetStartRecording_Landroid_net_Uri_Landroid_os_Bundle_Handler", ApiSince=30)]
public virtual void StartRecording (Android.Net.Uri? programUri, Android.OS.Bundle params);
[<Android.Runtime.Register("startRecording", "(Landroid/net/Uri;Landroid/os/Bundle;)V", "GetStartRecording_Landroid_net_Uri_Landroid_os_Bundle_Handler", ApiSince=30)>]
abstract member StartRecording : Android.Net.Uri * Android.OS.Bundle -> unit
override this.StartRecording : Android.Net.Uri * Android.OS.Bundle -> unit

Parameters

programUri
Uri

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

params
Bundle

Domain-specific data for this 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

Starts TV program recording in the current recording session. Recording is expected to start immediately when this method is called. If the current recording session has not yet tuned to any channel, this method throws an exception.

The application may supply the URI for a TV program for filling in program specific data fields in the android.media.tv.TvContract.RecordedPrograms table. 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. In either case, the application must call TvRecordingClient#stopRecording() to stop the recording.

The recording session will respond by calling RecordingCallback#onError(int) if the start request cannot be fulfilled.

Java documentation for android.media.tv.TvRecordingClient.startRecording(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