RecordingCallback
abstract class RecordingCallback
kotlin.Any | |
↳ | android.media.tv.TvRecordingClient.RecordingCallback |
Callback used to receive various status updates on the android.media.tv.TvInputService.RecordingSession
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
open Unit |
onConnectionFailed(inputId: String!) This is called when an error occurred while establishing a connection to the recording session for the corresponding TV input. |
open Unit |
onDisconnected(inputId: String!) This is called when the connection to the current recording session is lost. |
open Unit |
This is called when an issue has occurred. |
open Unit |
onRecordingStopped(recordedProgramUri: Uri!) This is called when the current recording session has stopped recording and created a new data entry in the |
open Unit |
This is called when the recording session has been tuned to the given channel and is ready to start recording. |
Public constructors
RecordingCallback
RecordingCallback()
Public methods
onConnectionFailed
open fun onConnectionFailed(inputId: String!): Unit
This is called when an error occurred while establishing a connection to the recording session for the corresponding TV input.
Parameters | |
---|---|
inputId |
String!: The ID of the TV input bound to the current TvRecordingClient. |
onDisconnected
open fun onDisconnected(inputId: String!): Unit
This is called when the connection to the current recording session is lost.
Parameters | |
---|---|
inputId |
String!: The ID of the TV input bound to the current TvRecordingClient. |
onError
open fun onError(error: Int): Unit
This is called when an issue has occurred. It may be called at any time after the current recording session is created until it is released.
Parameters | |
---|---|
error |
Int: The error code. Should be one of the followings.
android.media.tv.TvInputManager#RECORDING_ERROR_UNKNOWN , android.media.tv.TvInputManager#RECORDING_ERROR_INSUFFICIENT_SPACE , or android.media.tv.TvInputManager#RECORDING_ERROR_RESOURCE_BUSY |
onRecordingStopped
open fun onRecordingStopped(recordedProgramUri: Uri!): Unit
This is called when the current recording session has stopped recording and created a new data entry in the TvContract.RecordedPrograms
table that describes the newly recorded program.
Parameters | |
---|---|
recordedProgramUri |
Uri!: The URI for the newly recorded program. |
onTuned
open fun onTuned(channelUri: Uri!): Unit
This is called when the recording session has been tuned to the given channel and is ready to start recording.
Parameters | |
---|---|
channelUri |
Uri!: The URI of a channel. |