TimelineResponse

public final class TimelineResponse
extends BroadcastInfoResponse implements Parcelable

java.lang.Object
   ↳ android.media.tv.BroadcastInfoResponse
     ↳ android.media.tv.TimelineResponse


A response for Timeline from broadcast signal.

Summary

Inherited constants

Fields

public static final Creator<TimelineResponse> CREATOR

Inherited fields

Public constructors

TimelineResponse(int requestId, int sequence, int responseResult, String selector, int unitsPerTick, int unitsPerSecond, long wallClock, long ticks)

Public methods

int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

Uri getSelector()

Gets the Timeline Selector of the response.

long getTicks()

Gets the Ticks of the response.

int getUnitsPerSecond()

Gets the UnitsPerSecond of the response.

int getUnitsPerTick()

Gets the UnitsPerTick of the response.

long getWallClock()

Gets the System time (UTC) of the response.

void writeToParcel(Parcel dest, int flags)

Flatten this object in to a Parcel.

Inherited methods

Fields

CREATOR

Added in API level 33
public static final Creator<TimelineResponse> CREATOR

Public constructors

TimelineResponse

Added in API level 33
public TimelineResponse (int requestId, 
                int sequence, 
                int responseResult, 
                String selector, 
                int unitsPerTick, 
                int unitsPerSecond, 
                long wallClock, 
                long ticks)

Parameters
requestId int

sequence int

responseResult int: Value is BroadcastInfoResponse.RESPONSE_RESULT_ERROR, BroadcastInfoResponse.RESPONSE_RESULT_OK, or BroadcastInfoResponse.RESPONSE_RESULT_CANCEL

selector String: This value may be null.

unitsPerTick int

unitsPerSecond int

wallClock long

ticks long

Public methods

describeContents

Added in API level 33
public int describeContents ()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel, int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Returns
int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR

getSelector

Added in API level 33
public Uri getSelector ()

Gets the Timeline Selector of the response. The Timeline Selector is a URI that specifies the source of a Timeline by indicating its type and information needed to locate the signalling that conveys Time Values on it.

Returns
Uri This value may be null.

getTicks

Added in API level 33
public long getTicks ()

Gets the Ticks of the response. A Time Value is a measure of a moment in time for a particular Timeline. Time Values are represented by an integer number of ticks (positive or negative).

Returns
long

getUnitsPerSecond

Added in API level 33
public int getUnitsPerSecond ()

Gets the UnitsPerSecond of the response.

Returns
int

getUnitsPerTick

Added in API level 33
public int getUnitsPerTick ()

Gets the UnitsPerTick of the response.

Returns
int

getWallClock

Added in API level 33
public long getWallClock ()

Gets the System time (UTC) of the response.

Returns
long

writeToParcel

Added in API level 33
public void writeToParcel (Parcel dest, 
                int flags)

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.PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES