public abstract static class TvRecordingClient.RecordingCallback extends Object
TvInputService.RecordingSession
Constructor and Description |
---|
RecordingCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onConnectionFailed(String inputId)
This is called when an error occurred while establishing a connection to the recording
session for the corresponding TV input.
|
void |
onDisconnected(String inputId)
This is called when the connection to the current recording session is lost.
|
void |
onError(int error)
This is called when an issue has occurred.
|
void |
onEvent(String inputId,
String eventType,
Bundle eventArgs)
This is invoked when a custom event from the bound TV input is sent to this client.
|
void |
onRecordingStopped(Uri recordedProgramUri)
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. |
void |
onTuned(Uri channelUri)
This is called when the recording session has been tuned to the given channel and is
ready to start recording.
|
public void onConnectionFailed(String inputId)
inputId
- The ID of the TV input bound to the current TvRecordingClient.public void onDisconnected(String inputId)
inputId
- The ID of the TV input bound to the current TvRecordingClient.public void onTuned(Uri channelUri)
channelUri
- The URI of a channel.public void onRecordingStopped(Uri recordedProgramUri)
TvContract.RecordedPrograms
table that describes the newly
recorded program.recordedProgramUri
- The URI for the newly recorded program.public void onError(int error)
error
- The error code. Should be one of the followings.
public void onEvent(String inputId, String eventType, Bundle eventArgs)
inputId
- The ID of the TV input bound to this client.eventType
- The type of the event.eventArgs
- Optional arguments of the event.