Sdílet prostřednictvím


TvRecordingClient.StopRecording Method

Definition

Stops TV program recording in the current recording session.

[Android.Runtime.Register("stopRecording", "()V", "GetStopRecordingHandler", ApiSince=24)]
public virtual void StopRecording ();
[<Android.Runtime.Register("stopRecording", "()V", "GetStopRecordingHandler", ApiSince=24)>]
abstract member StopRecording : unit -> unit
override this.StopRecording : unit -> unit
Attributes

Remarks

Stops TV program recording in the current recording session. Recording is expected to stop immediately when this method is called. If recording has not yet started in the current recording session, this method does nothing.

The recording session is expected to create a new data entry in the android.media.tv.TvContract.RecordedPrograms table that describes the newly recorded program and pass the URI to that entry through to RecordingCallback#onRecordingStopped(Uri). If the stop request cannot be fulfilled, the recording session will respond by calling RecordingCallback#onError(int).

Java documentation for android.media.tv.TvRecordingClient.stopRecording().

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