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

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

RESPONSE_TYPE_BUFFERING

Added in API level 34
static val RESPONSE_TYPE_BUFFERING: Int
Value: 5

RESPONSE_TYPE_ERROR

Added in API level 33
static val RESPONSE_TYPE_ERROR: Int
Value: 4

RESPONSE_TYPE_FINISHED

Added in API level 33
static val RESPONSE_TYPE_FINISHED: Int
Value: 2

RESPONSE_TYPE_PLAYING

Added in API level 33
static val RESPONSE_TYPE_PLAYING: Int
Value: 1

RESPONSE_TYPE_STOPPED

Added in API level 33
static val RESPONSE_TYPE_STOPPED: Int
Value: 3

Public constructors

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.

getId

Added in API level 33
fun getId(): Int

Gets the ID of AD response.

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

Properties

CREATOR

Added in API level 33
static val CREATOR: Parcelable.Creator<AdResponse!>