Added in API level 33

TvInteractiveAppCallback


abstract class TvInteractiveAppCallback
kotlin.Any
   ↳ android.media.tv.interactive.TvInteractiveAppManager.TvInteractiveAppCallback

Callback used to monitor status of the TV Interactive App.

Summary

Public constructors

Public methods
open Unit

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

open Unit

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

open Unit

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

open Unit
onTvInteractiveAppServiceStateChanged(iAppServiceId: String, type: Int, state: Int, err: Int)

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

Public constructors

TvInteractiveAppCallback

TvInteractiveAppCallback()

Public methods

onInteractiveAppServiceAdded

Added in API level 33
open fun onInteractiveAppServiceAdded(iAppServiceId: String): Unit

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 TvInteractiveAppService interface.

Parameters
iAppServiceId String: The ID of the TV Interactive App service. This value cannot be null.

onInteractiveAppServiceRemoved

Added in API level 33
open fun onInteractiveAppServiceRemoved(iAppServiceId: String): Unit

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.

Parameters
iAppServiceId String: The ID of the TV Interactive App service. This value cannot be null.

onInteractiveAppServiceUpdated

Added in API level 33
open fun onInteractiveAppServiceUpdated(iAppServiceId: String): Unit

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.

Parameters
iAppServiceId String: The ID of the TV Interactive App service. This value cannot be null.

onTvInteractiveAppServiceStateChanged

Added in API level 33
open fun onTvInteractiveAppServiceStateChanged(
    iAppServiceId: String,
    type: Int,
    state: Int,
    err: Int
): Unit

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

Parameters
iAppServiceId String: The ID of the TV Interactive App service. This value cannot be null.
type Int: the interactive app type Value is android.media.tv.interactive.TvInteractiveAppServiceInfo#INTERACTIVE_APP_TYPE_HBBTV, android.media.tv.interactive.TvInteractiveAppServiceInfo#INTERACTIVE_APP_TYPE_ATSC, android.media.tv.interactive.TvInteractiveAppServiceInfo#INTERACTIVE_APP_TYPE_GINGA, android.media.tv.interactive.TvInteractiveAppServiceInfo#INTERACTIVE_APP_TYPE_TARGETED_AD, or android.media.tv.interactive.TvInteractiveAppServiceInfo#INTERACTIVE_APP_TYPE_OTHER
state Int: the current state of the service of the given type Value is android.media.tv.interactive.TvInteractiveAppManager#SERVICE_STATE_UNREALIZED, android.media.tv.interactive.TvInteractiveAppManager#SERVICE_STATE_PREPARING, android.media.tv.interactive.TvInteractiveAppManager#SERVICE_STATE_READY, or android.media.tv.interactive.TvInteractiveAppManager#SERVICE_STATE_ERROR
err Int: the error code for error state. ERROR_NONE is used when the state is not SERVICE_STATE_ERROR. Value is android.media.tv.interactive.TvInteractiveAppManager#ERROR_NONE, android.media.tv.interactive.TvInteractiveAppManager#ERROR_UNKNOWN, android.media.tv.interactive.TvInteractiveAppManager#ERROR_NOT_SUPPORTED, android.media.tv.interactive.TvInteractiveAppManager#ERROR_WEAK_SIGNAL, android.media.tv.interactive.TvInteractiveAppManager#ERROR_RESOURCE_UNAVAILABLE, android.media.tv.interactive.TvInteractiveAppManager#ERROR_BLOCKED, android.media.tv.interactive.TvInteractiveAppManager#ERROR_ENCRYPTED, or android.media.tv.interactive.TvInteractiveAppManager#ERROR_UNKNOWN_CHANNEL