TvInteractiveAppManager.TvInteractiveAppCallback


public static abstract class TvInteractiveAppManager.TvInteractiveAppCallback
extends Object

java.lang.Object
   ↳ android.media.tv.interactive.TvInteractiveAppManager.TvInteractiveAppCallback


Callback used to monitor status of the TV Interactive App.

Summary

Public constructors

TvInteractiveAppCallback()

Public methods

void onInteractiveAppServiceAdded(String iAppServiceId)

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

void onInteractiveAppServiceRemoved(String iAppServiceId)

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

void onInteractiveAppServiceUpdated(String iAppServiceId)

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

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

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

Inherited methods

Public constructors

TvInteractiveAppCallback

public TvInteractiveAppCallback ()

Public methods

onInteractiveAppServiceAdded

Added in API level 33
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 TvInteractiveAppService interface.

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

onInteractiveAppServiceRemoved

Added in API level 33
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.

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

onInteractiveAppServiceUpdated

Added in API level 33
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.

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

onTvInteractiveAppServiceStateChanged

Added in API level 33
public void onTvInteractiveAppServiceStateChanged (String iAppServiceId, 
                int type, 
                int state, 
                int err)

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 TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_HBBTV, TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_ATSC, TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_GINGA, TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_TARGETED_AD, or TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_OTHER

state int: the current state of the service of the given type Value is TvInteractiveAppManager.SERVICE_STATE_UNREALIZED, TvInteractiveAppManager.SERVICE_STATE_PREPARING, TvInteractiveAppManager.SERVICE_STATE_READY, or TvInteractiveAppManager.SERVICE_STATE_ERROR

err int: the error code for error state. TvInteractiveAppManager.ERROR_NONE is used when the state is not TvInteractiveAppManager.SERVICE_STATE_ERROR. Value is TvInteractiveAppManager.ERROR_NONE, TvInteractiveAppManager.ERROR_UNKNOWN, TvInteractiveAppManager.ERROR_NOT_SUPPORTED, TvInteractiveAppManager.ERROR_WEAK_SIGNAL, TvInteractiveAppManager.ERROR_RESOURCE_UNAVAILABLE, TvInteractiveAppManager.ERROR_BLOCKED, TvInteractiveAppManager.ERROR_ENCRYPTED, or TvInteractiveAppManager.ERROR_UNKNOWN_CHANNEL