SectionResponse
class SectionResponse : BroadcastInfoResponse, Parcelable
A response for Section from broadcast signal.
Summary
Public methods |
Int |
|
Bundle |
Gets the raw data of session.
|
Int |
Gets the Session Id of requested session.
|
Int |
Gets the Version number of requested session.
|
Unit |
Flatten this object in to a Parcel.
|
Inherited functions |
From class BroadcastInfoResponse
Int |
getRequestId()
Gets the ID of the request.
The ID is used to associate the response with the request.
|
Int |
getResponseResult()
Gets the result for the response.
|
Int |
getSequence()
Gets the sequence number which indicates the order of related responses.
|
Int |
getType()
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.
|
|
Public constructors
SectionResponse
SectionResponse(
requestId: Int,
sequence: Int,
responseResult: Int,
sessionId: Int,
version: Int,
sessionData: Bundle?)
Public methods
describeContents
fun describeContents(): Int
getSessionData
fun getSessionData(): Bundle
Gets the raw data of session. The sessionData field represents payload data of the session after session header, which includes version and sessionId.
Return |
Bundle |
This value cannot be null . |
getSessionId
fun getSessionId(): Int
Gets the Session Id of requested session.
getVersion
fun getVersion(): Int
Gets the Version number of requested session. If it is null, value will be -1.
The consistency of version numbers between request and response depends on BroadcastInfoRequest.getOption()
. If the request has RequestOption value REQUEST_OPTION_AUTO_UPDATE, then the response may be set to the latest version which may be different from the version of the request. Otherwise, response with a different version from its request will be considered invalid.
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Properties
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]