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 |
getType() 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
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
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
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
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
open fun getRequestId(): Int
Gets the ID of the request.
The ID is used to associate the response with the request.
getType
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.
writeToParcel
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 |