Added in API level 33

TvInteractiveAppServiceInfo


class TvInteractiveAppServiceInfo : Parcelable
kotlin.Any
   ↳ android.media.tv.interactive.TvInteractiveAppServiceInfo

This class is used to specify meta information of a TV interactive app.

Summary

Constants
static Int

ATSC interactive app type

static Int

Ginga interactive app type

static Int

HbbTV interactive app type

static Int

Other interactive app type

static Int

Targeted Advertisement interactive app type

Inherited constants
Public constructors

Constructs a TvInteractiveAppServiceInfo object.

Public methods
Int

MutableList<String!>

Gets custom supported interactive app types which are not listed.

String

Returns a unique ID for this TV interactive app service.

ServiceInfo?

Returns the information of the service that implements this TV Interactive App service.

Int

Gets supported interactive app types.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<TvInteractiveAppServiceInfo!>

Constants

INTERACTIVE_APP_TYPE_ATSC

Added in API level 33
static val INTERACTIVE_APP_TYPE_ATSC: Int

ATSC interactive app type

Value: 2

INTERACTIVE_APP_TYPE_GINGA

Added in API level 33
static val INTERACTIVE_APP_TYPE_GINGA: Int

Ginga interactive app type

Value: 4

INTERACTIVE_APP_TYPE_HBBTV

Added in API level 33
static val INTERACTIVE_APP_TYPE_HBBTV: Int

HbbTV interactive app type

Value: 1

INTERACTIVE_APP_TYPE_OTHER

Added in API level 34
static val INTERACTIVE_APP_TYPE_OTHER: Int

Other interactive app type

Value: -2147483648

INTERACTIVE_APP_TYPE_TARGETED_AD

Added in API level 34
static val INTERACTIVE_APP_TYPE_TARGETED_AD: Int

Targeted Advertisement interactive app type

Value: 8

Public constructors

TvInteractiveAppServiceInfo

Added in API level 33
TvInteractiveAppServiceInfo(
    context: Context,
    component: ComponentName)

Constructs a TvInteractiveAppServiceInfo object.

Parameters
context Context: the application context This value cannot be null.
component ComponentName: the component name of the TvInteractiveAppService This value cannot be null.

Public methods

describeContents

Added in API level 33
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getCustomSupportedTypes

Added in API level 34
fun getCustomSupportedTypes(): MutableList<String!>

Gets custom supported interactive app types which are not listed.

Return
MutableList<String!> This value cannot be null.

getId

Added in API level 33
fun getId(): String

Returns a unique ID for this TV interactive app service. The ID is generated from the package and class name implementing the TV interactive app service.

Return
String This value cannot be null.

getServiceInfo

Added in API level 33
fun getServiceInfo(): ServiceInfo?

Returns the information of the service that implements this TV Interactive App service.

Return
ServiceInfo? This value may be null.

getSupportedTypes

Added in API level 33
fun getSupportedTypes(): Int

Gets supported interactive app types.

The supported interactive app types is in a bit map format. For example:

<code>
    int types = tvInteractiveAppInfo.getSupportedTypes();
    if (types &amp; TvInteractiveAppInfo.INTERACTIVE_APP_TYPE_HBBTV != 0) {
      // HbbTV type is supported. Do something...
    }
    if (types &amp; TvInteractiveAppInfo.INTERACTIVE_APP_TYPE_ATSC == 0) {
      // ATSC type is not supported. Do something...
    }
  </code>
Return
Int An int bit map representing supported types. 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 This value cannot be null.

writeToParcel

Added in API level 33
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 33
static val CREATOR: Parcelable.Creator<TvInteractiveAppServiceInfo!>