LoadEventInfo
@UnstableApi
public final class LoadEventInfo
MediaSource load event information.
Summary
Nested types |
|---|
public final class LoadEventInfo.BuilderBuilder for |
Public fields |
|
|---|---|
final long |
The number of bytes that were loaded up to the event time. |
final DataSpec |
Defines the requested data. |
final long |
The value of |
final long |
The duration of the load up to the event time. |
final long |
Identifies the load task to which this event corresponds. |
final Map<String, List<String>> |
The response headers associated with the load, or an empty map if unavailable. |
final @Nullable String |
The ID of the steered pathway from which data is being loaded, or |
final Uri |
The |
Public constructors |
|---|
This method is deprecated. Use |
This method is deprecated. Use |
Public methods |
|
|---|---|
LoadEventInfo.Builder |
Initializes a new |
LoadEventInfo |
This method is deprecated. Use |
static long |
getNewId()Returns an non-negative identifier which is unique to the JVM instance. |
Public fields
bytesLoaded
public final long bytesLoaded
The number of bytes that were loaded up to the event time.
elapsedRealtimeMs
public final long elapsedRealtimeMs
The value of elapsedRealtime at the time of the load event.
responseHeaders
public final Map<String, List<String>> responseHeaders
The response headers associated with the load, or an empty map if unavailable.
steeredPathwayId
public final @Nullable String steeredPathwayId
The ID of the steered pathway from which data is being loaded, or null if not applicable.
Public constructors
Public methods
buildUpon
public LoadEventInfo.Builder buildUpon()
Initializes a new Builder with the values from this instance.
copyWithTaskIdAndDurationMs
public LoadEventInfocopyWithTaskIdAndDurationMs(long loadTaskId, long loadDurationMs)
getNewId
public static long getNewId()
Returns an non-negative identifier which is unique to the JVM instance.