Added in API level 36
    TvAdServiceInfo
class TvAdServiceInfo : Parcelable
| kotlin.Any | |
| ↳ | android.media.tv.ad.TvAdServiceInfo | 
This class is used to specify meta information of a TV AD service.
Summary
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
| TvAdServiceInfo(context: Context, component: ComponentName)Constructs a TvAdServiceInfo object. | |
| Public methods | |
|---|---|
| Int | |
| String | getId()Returns a unique ID for this TV AD service. | 
| ServiceInfo? | Returns the information of the service that implements this AD service. | 
| MutableList<String!> | Gets supported TV AD types. | 
| Unit | writeToParcel(dest: Parcel, flags: Int) | 
| Properties | |
|---|---|
| static Parcelable.Creator<TvAdServiceInfo!> | |
Public constructors
TvAdServiceInfo
Added in API level 36
      TvAdServiceInfo(
context: Context,
component: ComponentName)
Constructs a TvAdServiceInfo object.
| Parameters | |
|---|---|
| context | Context: the application context | 
| component | ComponentName: the component name of the TvAdService | 
Public methods
describeContents
Added in API level 36
      fun describeContents(): Int
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
getId
Added in API level 36
      fun getId(): String
Returns a unique ID for this TV AD service. The ID is generated from the package and class name implementing the TV AD service.
getServiceInfo
Added in API level 36
      fun getServiceInfo(): ServiceInfo?
Returns the information of the service that implements this AD service.
| Return | |
|---|---|
| ServiceInfo? | This value may be null. | 
getSupportedTypes
Added in API level 36
      fun getSupportedTypes(): MutableList<String!>
Gets supported TV AD types.
writeToParcel
Added in API level 36
      fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
| Parameters | |
|---|---|
| dest | Parcel: The Parcel in which the object should be written. 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 either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
