# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Ctors | Methods | Inherited Methods

# TvInputManager.TvInputCallback

`public static abstract class TvInputManager.TvInputCallback`
`extends Object` ``

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

Callback used to monitor status of the TV inputs.

## Summary

### Public constructors
`TvInputCallback()`

### Public methods
`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.

### Inherited methods
From class `java.lang.Object`
`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 timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Public constructors

### TvInputCallback

    public TvInputCallback ()

## Public methods

### onInputAdded

    public void onInputAdded (String inputId)

This is called when a TV input is added to the system.

Normally it happens when the user installs a new TV input package that implements `TvInputService` interface.

Parameters
`inputId` | `String`: The ID of the TV input.

### onInputRemoved

    public void onInputRemoved (String inputId)

This is called when a TV input is removed from the system.

Normally it happens when the user uninstalls the previously installed TV input package.

Parameters
`inputId` | `String`: The ID of the TV input.

### onInputStateChanged

    public void onInputStateChanged (String inputId,
                    int state)

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

Parameters
`inputId` | `String`: The ID of the TV input.
`state` | `int`: State of the TV input. The value is one of the following: `TvInputManager#INPUT_STATE_CONNECTED` `TvInputManager#INPUT_STATE_CONNECTED_STANDBY` `TvInputManager#INPUT_STATE_DISCONNECTED` Value is `TvInputManager.INPUT_STATE_CONNECTED`, `TvInputManager.INPUT_STATE_CONNECTED_STANDBY`, or `TvInputManager.INPUT_STATE_DISCONNECTED`

### onInputUpdated

    public void onInputUpdated (String inputId)

This is called when a TV input is updated on the system.

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.

Parameters
`inputId` | `String`: The ID of the TV input.

### onTvInputInfoUpdated

    public void onTvInputInfoUpdated (TvInputInfo inputInfo)

This is called when the information about an existing TV input has been updated.

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.

Parameters
`inputInfo` | `TvInputInfo`: The `TvInputInfo` object that contains new information.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*