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 | |
|---|---|
            TvInteractiveAppServiceInfo(context: Context, component: ComponentName)Constructs a TvInteractiveAppServiceInfo object.  | 
        |
| Public methods | |
|---|---|
| Int | |
| MutableList<String!> | 
            
             Gets custom supported interactive app types which are not listed.  | 
        
| String | 
            getId()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
static val INTERACTIVE_APP_TYPE_ATSC: Int
ATSC interactive app type
Value: 2INTERACTIVE_APP_TYPE_GINGA
static val INTERACTIVE_APP_TYPE_GINGA: Int
Ginga interactive app type
Value: 4INTERACTIVE_APP_TYPE_HBBTV
static val INTERACTIVE_APP_TYPE_HBBTV: Int
HbbTV interactive app type
Value: 1INTERACTIVE_APP_TYPE_OTHER
static val INTERACTIVE_APP_TYPE_OTHER: Int
Other interactive app type
Value: -2147483648INTERACTIVE_APP_TYPE_TARGETED_AD
static val INTERACTIVE_APP_TYPE_TARGETED_AD: Int
Targeted Advertisement interactive app type
Value: 8Public constructors
TvInteractiveAppServiceInfo
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
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
fun getCustomSupportedTypes(): MutableList<String!>
Gets custom supported interactive app types which are not listed.
| Return | |
|---|---|
MutableList<String!> | 
            This value cannot be null. | 
          
See Also
getId
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
fun getServiceInfo(): ServiceInfo?
Returns the information of the service that implements this TV Interactive App service.
| Return | |
|---|---|
ServiceInfo? | 
            This value may be null. | 
          
getSupportedTypes
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 & 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... } </code>
writeToParcel
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 |