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

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

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)

Flatten this object in to a Parcel.

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

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.

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

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

Flatten this object in to a Parcel.

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 the following:

Properties

CREATOR

Added in API level 36
static val CREATOR: Parcelable.Creator<TvAdServiceInfo!>