Added in API level 33
AdResponse
class AdResponse : Parcelable
| kotlin.Any | |
| ↳ | android.media.tv.AdResponse |
An advertisement response which can be sent to TV interactive App service to inform AD status.
Summary
| Constants | |
|---|---|
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
AdResponse(id: Int, responseType: Int, elapsedTime: Long) | |
| Public methods | |
|---|---|
| Int | |
| Long | Gets the playback elapsed time in milliseconds. |
| Int | getId()Gets the ID of AD response. |
| Int | Gets the response type. |
| Unit | writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<AdResponse!> | |
Constants
Public constructors
AdResponse
Added in API level 33
AdResponse(
id: Int,
responseType: Int,
elapsedTime: Long)
Public methods
describeContents
Added in API level 33
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 |
getElapsedTimeMillis
Added in API level 33
fun getElapsedTimeMillis(): Long
Gets the playback elapsed time in milliseconds.
| Return | |
|---|---|
Long | The playback elapsed time. -1 if no valid elapsed time. |
getResponseType
Added in API level 33
fun getResponseType(): Int
Gets the response type.
writeToParcel
Added in API level 33
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 |