Most visited

Recently visited

Added in API level 24

TvRecordingClient.RecordingCallback

public static abstract class TvRecordingClient.RecordingCallback
extends Object

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


回拨用于接收 TvInputService.RecordingSession上的各种状态更新

摘要(Summary)

Public constructors

TvRecordingClient.RecordingCallback()

公共方法(Public methods)

void onConnectionFailed(String inputId)

当建立与相应电视输入的记录会话的连接时发生错误时调用此命令。

void onDisconnected(String inputId)

这在与当前记录会话的连接丢失时被调用。

void onError(int error)

这是在发生问题时调用的。

void onRecordingStopped(Uri recordedProgramUri)

当当前记录会话已停止记录并在 TvContract.RecordedPrograms表中创建一个描述新录制节目的新数据条目时,这将被调用。

void onTuned(Uri channelUri)

当记录会话已经被调谐到给定频道并且准备开始记录时被调用。

继承方法(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)

当建立与相应电视输入的记录会话的连接时发生错误时调用此命令。

参数(Parameters)
inputId String: The ID of the TV input bound to the current TvRecordingClient.

onDisconnected

Added in API level 24
void onDisconnected (String inputId)

这在与当前记录会话的连接丢失时被调用。

参数(Parameters)
inputId String: The ID of the TV input bound to the current TvRecordingClient.

onError

Added in API level 24
void onError (int error)

这是在发生问题时调用的。 它可以在创建当前记录会话之后随时调用,直到它被释放。

参数(Parameters)
error int: The error code. Should be one of the followings.

onRecordingStopped

Added in API level 24
void onRecordingStopped (Uri recordedProgramUri)

当当前记录会话已停止记录并在 TvContract.RecordedPrograms表中创建描述新录制节目的新数据条目时,将 TvContract.RecordedProgramsTvContract.RecordedPrograms

参数(Parameters)
recordedProgramUri Uri: The URI for the newly recorded program.

onTuned

Added in API level 24
void onTuned (Uri channelUri)

当记录会话已经被调谐到给定频道并且准备开始记录时被调用。

参数(Parameters)
channelUri Uri: The URI of a channel.

Hooray!