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

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

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

RecordingCallback

public RecordingCallback ()

Public methods

onConnectionFailed

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

onRecordingStopped

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