public abstract static class TvInputManager.TvInputCallback extends Object
Constructor and Description |
---|
TvInputCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onInputAdded(String inputId)
This is called when a TV input is added to the system.
|
void |
onInputRemoved(String inputId)
This is called when a TV input is removed from the system.
|
void |
onInputStateChanged(String inputId,
int state)
This is called when the state of a given TV input is changed.
|
void |
onInputUpdated(String inputId)
This is called when a TV input is updated on the system.
|
void |
onTvInputInfoUpdated(TvInputInfo inputInfo)
This is called when the information about an existing TV input has been updated.
|
public void onInputStateChanged(String inputId, int state)
inputId
- The ID of the TV input.state
- State of the TV input. The value is one of the following:
public void onInputAdded(String inputId)
Normally it happens when the user installs a new TV input package that implements
TvInputService
interface.
inputId
- The ID of the TV input.public void onInputRemoved(String inputId)
Normally it happens when the user uninstalls the previously installed TV input package.
inputId
- The ID of the TV input.public void onInputUpdated(String inputId)
Normally it happens when a previously installed TV input package is re-installed or the media on which a newer version of the package exists becomes available/unavailable.
inputId
- The ID of the TV input.public void onTvInputInfoUpdated(TvInputInfo inputInfo)
Because the system automatically creates a TvInputInfo
object for each TV
input based on the information collected from the AndroidManifest.xml
, this
method is only called back when such information has changed dynamically.
inputInfo
- The TvInputInfo
object that contains new information.