Android APIs
public static abstract class

TvInputManager.TvInputCallback

extends Object
java.lang.Object
   ↳ android.media.tv.TvInputManager.TvInputCallback

Class Overview

Callback used to monitor status of the TV input.

Summary

Public Constructors
TvInputManager.TvInputCallback()
Public Methods
void onInputAdded(String inputId)
This is called when a TV input is added.
void onInputRemoved(String inputId)
This is called when a TV input is removed.
void onInputStateChanged(String inputId, int state)
This is called when the state of a given TV input is changed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TvInputManager.TvInputCallback ()

Added in API level 21

Public Methods

public void onInputAdded (String inputId)

Added in API level 21

This is called when a TV input is added.

Parameters
inputId The id of the TV input.

public void onInputRemoved (String inputId)

Added in API level 21

This is called when a TV input is removed.

Parameters
inputId The id of the TV input.

public void onInputStateChanged (String inputId, int state)

Added in API level 21

This is called when the state of a given TV input is changed.

Parameters
inputId The id of the TV input.
state State of the TV input. The value is one of the following: