TvInteractiveAppServiceInfo


public final class TvInteractiveAppServiceInfo
extends Object implements Parcelable

java.lang.Object
   ↳ android.media.tv.interactive.TvInteractiveAppServiceInfo


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

Summary

Constants

int INTERACTIVE_APP_TYPE_ATSC

ATSC interactive app type

int INTERACTIVE_APP_TYPE_GINGA

Ginga interactive app type

int INTERACTIVE_APP_TYPE_HBBTV

HbbTV interactive app type

int INTERACTIVE_APP_TYPE_OTHER

Other interactive app type

int INTERACTIVE_APP_TYPE_TARGETED_AD

Targeted Advertisement interactive app type

Inherited constants

int CONTENTS_FILE_DESCRIPTOR

Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.

int PARCELABLE_WRITE_RETURN_VALUE

Flag for use with writeToParcel(Parcel, int): the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)".

Fields

public static final Creator<TvInteractiveAppServiceInfo> CREATOR

Public constructors

TvInteractiveAppServiceInfo(Context context, ComponentName component)

Constructs a TvInteractiveAppServiceInfo object.

Public methods

int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

List<String> getCustomSupportedTypes()

Gets custom supported interactive app types which are not listed.

String getId()

Returns a unique ID for this TV interactive app service.

ServiceInfo getServiceInfo()

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

int getSupportedTypes()

Gets supported interactive app types.

void writeToParcel(Parcel dest, int flags)

Flatten this object in to a Parcel.

Inherited methods

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 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 wait(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 wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

abstract int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

abstract void writeToParcel(Parcel dest, int flags)

Flatten this object in to a Parcel.

Constants

INTERACTIVE_APP_TYPE_ATSC

Added in API level 33
public static final int INTERACTIVE_APP_TYPE_ATSC

ATSC interactive app type

Constant Value: 2 (0x00000002)

INTERACTIVE_APP_TYPE_GINGA

Added in API level 33
public static final int INTERACTIVE_APP_TYPE_GINGA

Ginga interactive app type

Constant Value: 4 (0x00000004)

INTERACTIVE_APP_TYPE_HBBTV

Added in API level 33
public static final int INTERACTIVE_APP_TYPE_HBBTV

HbbTV interactive app type

Constant Value: 1 (0x00000001)

INTERACTIVE_APP_TYPE_OTHER

Added in API level 34
public static final int INTERACTIVE_APP_TYPE_OTHER

Other interactive app type

Constant Value: -2147483648 (0x80000000)

INTERACTIVE_APP_TYPE_TARGETED_AD

Added in API level 34
public static final int INTERACTIVE_APP_TYPE_TARGETED_AD

Targeted Advertisement interactive app type

Constant Value: 8 (0x00000008)

Fields

CREATOR

Added in API level 33
public static final Creator<TvInteractiveAppServiceInfo> CREATOR

Public constructors

TvInteractiveAppServiceInfo

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

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
public int describeContents ()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel, int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Returns
int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR

getCustomSupportedTypes

Added in API level 34
public List<String> getCustomSupportedTypes ()

Gets custom supported interactive app types which are not listed.

Returns
List<String> This value cannot be null.

getId

Added in API level 33
public String getId ()

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.

Returns
String This value cannot be null.

getServiceInfo

Added in API level 33
public ServiceInfo getServiceInfo ()

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

Returns
ServiceInfo This value may be null.

getSupportedTypes

Added in API level 33
public int getSupportedTypes ()

Gets supported interactive app types.

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


   int types = tvInteractiveAppInfo.getSupportedTypes();
   if (types & TvInteractiveAppInfo.INTERACTIVE_APP_TYPE_HBBTV != 0) {
     // HbbTV type is supported. Do something...
   }
   if (types & TvInteractiveAppInfo.INTERACTIVE_APP_TYPE_ATSC == 0) {
     // ATSC type is not supported. Do something...
   }
 

Returns
int An int bit map representing supported types. Value is INTERACTIVE_APP_TYPE_HBBTV, INTERACTIVE_APP_TYPE_ATSC, INTERACTIVE_APP_TYPE_GINGA, INTERACTIVE_APP_TYPE_TARGETED_AD, or INTERACTIVE_APP_TYPE_OTHER This value cannot be null.

writeToParcel

Added in API level 33
public void writeToParcel (Parcel dest, 
                int flags)

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.PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES