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 | 
|---|
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 | |
|---|---|
Constants
INTERACTIVE_APP_TYPE_ATSC
public static final int INTERACTIVE_APP_TYPE_ATSC
ATSC interactive app type
Constant Value: 2 (0x00000002)
INTERACTIVE_APP_TYPE_GINGA
public static final int INTERACTIVE_APP_TYPE_GINGA
Ginga interactive app type
Constant Value: 4 (0x00000004)
INTERACTIVE_APP_TYPE_HBBTV
public static final int INTERACTIVE_APP_TYPE_HBBTV
HbbTV interactive app type
Constant Value: 1 (0x00000001)
INTERACTIVE_APP_TYPE_OTHER
public static final int INTERACTIVE_APP_TYPE_OTHER
Other interactive app type
Constant Value: -2147483648 (0x80000000)
INTERACTIVE_APP_TYPE_TARGETED_AD
public static final int INTERACTIVE_APP_TYPE_TARGETED_AD
Targeted Advertisement interactive app type
Constant Value: 8 (0x00000008)
Fields
Public constructors
TvInteractiveAppServiceInfo
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
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
public List<String> getCustomSupportedTypes ()
Gets custom supported interactive app types which are not listed.
| Returns | |
|---|---|
List<String> | 
        This value cannot be null. | 
      
See also:
getId
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
public ServiceInfo getServiceInfo ()
Returns the information of the service that implements this TV Interactive App service.
| Returns | |
|---|---|
ServiceInfo | 
        This value may be null. | 
      
getSupportedTypes
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
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 |