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

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

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

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

getId

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

fun getServiceInfo(): ServiceInfo?

Returns the information of the service that implements this AD service.

Return
ServiceInfo? This value may be null.

getSupportedTypes

fun getSupportedTypes(): MutableList<String!>

Gets supported TV AD types.

writeToParcel

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

Properties

CREATOR

static val CREATOR: Parcelable.Creator<TvAdServiceInfo!>