Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager.TvInteractiveAppCallback#pubctors) \| [Methods](https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager.TvInteractiveAppCallback#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager.TvInteractiveAppCallback#inhmethods)

# TvInteractiveAppManager.TvInteractiveAppCallback

*** ** * ** ***


`
public
static

abstract
class
TvInteractiveAppManager.TvInteractiveAppCallback
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.media.tv.interactive.TvInteractiveAppManager.TvInteractiveAppCallback |

<br />

*** ** * ** ***

Callback used to monitor status of the TV Interactive App.

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager.TvInteractiveAppCallback#TvInteractiveAppCallback()() ` |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager.TvInteractiveAppCallback#onInteractiveAppServiceAdded(java.lang.String)(https://developer.android.com/reference/java/lang/String iAppServiceId) ` This is called when a TV Interactive App service is added to the system. |
| ` void` | ` https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager.TvInteractiveAppCallback#onInteractiveAppServiceRemoved(java.lang.String)(https://developer.android.com/reference/java/lang/String iAppServiceId) ` This is called when a TV Interactive App service is removed from the system. |
| ` void` | ` https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager.TvInteractiveAppCallback#onInteractiveAppServiceUpdated(java.lang.String)(https://developer.android.com/reference/java/lang/String iAppServiceId) ` This is called when a TV Interactive App service is updated on the system. |
| ` void` | ` https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager.TvInteractiveAppCallback#onTvInteractiveAppServiceStateChanged(java.lang.String,%20int,%20int,%20int)(https://developer.android.com/reference/java/lang/String iAppServiceId, int type, int state, int err) ` This is called when the state of the interactive app service is changed. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(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` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(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` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public constructors

### TvInteractiveAppCallback

```
public TvInteractiveAppCallback ()
```

<br />

<br />

## Public methods

### onInteractiveAppServiceAdded

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onInteractiveAppServiceAdded (String iAppServiceId)
```

This is called when a TV Interactive App service is added to the system.

Normally it happens when the user installs a new TV Interactive App service package
that implements `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppService` interface.

<br />

| Parameters ||
|---|---|
| `iAppServiceId` | `String`: The ID of the TV Interactive App service. This value cannot be `null`. <br /> |

### onInteractiveAppServiceRemoved

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onInteractiveAppServiceRemoved (String iAppServiceId)
```

This is called when a TV Interactive App service is removed from the system.

Normally it happens when the user uninstalls the previously installed TV Interactive
App service package.

<br />

| Parameters ||
|---|---|
| `iAppServiceId` | `String`: The ID of the TV Interactive App service. This value cannot be `null`. <br /> |

### onInteractiveAppServiceUpdated

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onInteractiveAppServiceUpdated (String iAppServiceId)
```

This is called when a TV Interactive App service is updated on the system.

Normally it happens when a previously installed TV Interactive App service package is
re-installed or a newer version of the package exists becomes available/unavailable.

<br />

| Parameters ||
|---|---|
| `iAppServiceId` | `String`: The ID of the TV Interactive App service. This value cannot be `null`. <br /> |

### onTvInteractiveAppServiceStateChanged

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onTvInteractiveAppServiceStateChanged (String iAppServiceId, 
                int type, 
                int state, 
                int err)
```

This is called when the state of the interactive app service is changed.

<br />

| Parameters ||
|---|---|
| `iAppServiceId` | `String`: The ID of the TV Interactive App service. This value cannot be `null`. <br /> |
| `type` | `int`: the interactive app type. Value is one of the following: - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppServiceInfo#INTERACTIVE_APP_TYPE_HBBTV` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppServiceInfo#INTERACTIVE_APP_TYPE_ATSC` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppServiceInfo#INTERACTIVE_APP_TYPE_GINGA` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppServiceInfo#INTERACTIVE_APP_TYPE_TARGETED_AD` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppServiceInfo#INTERACTIVE_APP_TYPE_OTHER` |
| `state` | `int`: the current state of the service of the given type. Value is one of the following: - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#SERVICE_STATE_UNREALIZED` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#SERVICE_STATE_PREPARING` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#SERVICE_STATE_READY` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#SERVICE_STATE_ERROR` |
| `err` | `int`: the error code for error state. `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#ERROR_NONE` is used when the state is not `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#SERVICE_STATE_ERROR`. Value is one of the following: - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#ERROR_NONE` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#ERROR_UNKNOWN` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#ERROR_NOT_SUPPORTED` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#ERROR_WEAK_SIGNAL` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#ERROR_RESOURCE_UNAVAILABLE` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#ERROR_BLOCKED` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#ERROR_ENCRYPTED` - `https://developer.android.com/reference/android/media/tv/interactive/TvInteractiveAppManager#ERROR_UNKNOWN_CHANNEL` |