Skip to content

Most visited

Recently visited

navigation

TvRecordingClient.RecordingCallback

public static abstract class TvRecordingClient.RecordingCallback
extends Object

java.lang.Object
   ↳ android.media.tv.TvRecordingClient.RecordingCallback


Callback used to receive various status updates on the TvInputService.RecordingSession

Summary

Public constructors

TvRecordingClient.RecordingCallback()

Public methods

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 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.

Inherited methods

From class java.lang.Object

Public constructors

TvRecordingClient.RecordingCallback

added in API level 24
TvRecordingClient.RecordingCallback ()

Public methods

onConnectionFailed

added in API level 24
void onConnectionFailed (String inputId)

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

added in API level 24
void onDisconnected (String inputId)

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

added in API level 24
void onError (int error)

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.

onRecordingStopped

added in API level 24
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.

Parameters
recordedProgramUri Uri: The URI for the newly recorded program.

onTuned

added in API level 24
void onTuned (Uri channelUri)

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.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)