Added in API level 33

BroadcastInfoRequest


abstract class BroadcastInfoRequest : Parcelable
kotlin.Any
   ↳ android.media.tv.BroadcastInfoRequest

A request for the information retrieved from broadcast signal.

Summary

Constants
static Int

Request option: auto update.

static Int

Request option: repeat.

Inherited constants
Public methods
open Int

open Int

Gets the request option of the request.

open Int

Gets the ID of the request.

open Int

Gets the broadcast info type.

open Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<BroadcastInfoRequest!>

Constants

REQUEST_OPTION_AUTO_UPDATE

Added in API level 33
static val REQUEST_OPTION_AUTO_UPDATE: Int

Request option: auto update.

With this option, a response is sent only when broadcast information is detected for the first time, new values are detected.

Value: 1

REQUEST_OPTION_REPEAT

Added in API level 33
static val REQUEST_OPTION_REPEAT: Int

Request option: repeat.

With this option, a response is sent when related broadcast information is detected, even if the same information has been sent previously.

Value: 0

Public methods

describeContents

Added in API level 33
open 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

getOption

Added in API level 33
open fun getOption(): Int

Gets the request option of the request.

Return
Int Value is android.media.tv.BroadcastInfoRequest#REQUEST_OPTION_REPEAT, android.media.tv.BroadcastInfoRequest#REQUEST_OPTION_AUTO_UPDATE, android.media.tv.BroadcastInfoRequest.REQUEST_OPTION_ONEWAY, or android.media.tv.BroadcastInfoRequest.REQUEST_OPTION_ONESHOT

getRequestId

Added in API level 33
open fun getRequestId(): Int

Gets the ID of the request.

The ID is used to associate the response with the request.

getType

Added in API level 33
open fun getType(): Int

Gets the broadcast info type.

The type indicates what broadcast information is requested, such as broadcast table, PES (packetized Elementary Stream), TS (transport stream), etc. The type of the request and the related responses should be the same.

Return
Int Value is android.media.tv.TvInputManager#BROADCAST_INFO_TYPE_TS, android.media.tv.TvInputManager#BROADCAST_INFO_TYPE_TABLE, android.media.tv.TvInputManager#BROADCAST_INFO_TYPE_SECTION, android.media.tv.TvInputManager#BROADCAST_INFO_TYPE_PES, android.media.tv.TvInputManager#BROADCAST_INFO_STREAM_EVENT, android.media.tv.TvInputManager#BROADCAST_INFO_TYPE_DSMCC, android.media.tv.TvInputManager#BROADCAST_INFO_TYPE_COMMAND, android.media.tv.TvInputManager#BROADCAST_INFO_TYPE_TIMELINE, or android.media.tv.TvInputManager.BROADCAST_INFO_TYPE_SIGNALING_DATA

writeToParcel

Added in API level 33
open 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<BroadcastInfoRequest!>