TvInputService.RecordingSession.NotifyError(RecordingError) Method

Definition

Informs the application that there is an error and this recording session is no longer able to start or continue recording.

[Android.Runtime.Register("notifyError", "(I)V", "GetNotifyError_IHandler", ApiSince=24)]
public virtual void NotifyError (Android.Media.TV.RecordingError error);
[<Android.Runtime.Register("notifyError", "(I)V", "GetNotifyError_IHandler", ApiSince=24)>]
abstract member NotifyError : Android.Media.TV.RecordingError -> unit
override this.NotifyError : Android.Media.TV.RecordingError -> unit

Parameters

error
RecordingError

The error code. Should be one of the followings. <ul> <li>TvInputManager#RECORDING_ERROR_UNKNOWN<li>TvInputManager#RECORDING_ERROR_INSUFFICIENT_SPACE<li>TvInputManager#RECORDING_ERROR_RESOURCE_BUSY</ul>

Attributes

Remarks

Informs the application that there is an error and this recording session is no longer able to start or continue recording. It may be called at any time after the recording session is created until #onRelease() is called.

The application may release the current session upon receiving the error code through TvRecordingClient.RecordingCallback#onError(int). The session may call #notifyRecordingStopped(Uri) if a partially recorded but still playable program is available, before calling this method.

Java documentation for android.media.tv.TvInputService.RecordingSession.notifyError(int).

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