LoadEventInfo.Builder
public final class LoadEventInfo.Builder
Builder for LoadEventInfo.
Summary
Public constructors |
|---|
|
Creates a builder. |
Public methods |
|
|---|---|
LoadEventInfo |
build()Builds the |
LoadEventInfo.Builder |
@CanIgnoreReturnValueSets the |
LoadEventInfo.Builder |
@CanIgnoreReturnValueSets the |
LoadEventInfo.Builder |
@CanIgnoreReturnValueSets the |
LoadEventInfo.Builder |
@CanIgnoreReturnValueSets the |
LoadEventInfo.Builder |
@CanIgnoreReturnValueSets the |
LoadEventInfo.Builder |
@CanIgnoreReturnValueSets the |
LoadEventInfo.Builder |
@CanIgnoreReturnValueSets the |
LoadEventInfo.Builder |
Sets the |
Public constructors
Builder
public Builder(long loadTaskId, DataSpec dataSpec, long elapsedRealtimeMs)
Creates a builder.
| Parameters | |
|---|---|
long loadTaskId |
See |
DataSpec dataSpec |
See |
long elapsedRealtimeMs |
See |
Public methods
setBytesLoaded
@CanIgnoreReturnValue
public LoadEventInfo.Builder setBytesLoaded(long bytesLoaded)
Sets the bytesLoaded.
| Parameters | |
|---|---|
long bytesLoaded |
See |
| Returns | |
|---|---|
LoadEventInfo.Builder |
This builder. |
setDataSpec
@CanIgnoreReturnValue
public LoadEventInfo.Builder setDataSpec(DataSpec dataSpec)
Sets the dataSpec.
This also sets the uri to the uri of the given DataSpec. If you need to set the uri to a different value, call setUri to override it.
| Returns | |
|---|---|
LoadEventInfo.Builder |
This builder. |
setElapsedRealtimeMs
@CanIgnoreReturnValue
public LoadEventInfo.Builder setElapsedRealtimeMs(long elapsedRealtimeMs)
Sets the elapsedRealtimeMs.
| Parameters | |
|---|---|
long elapsedRealtimeMs |
See |
| Returns | |
|---|---|
LoadEventInfo.Builder |
This builder. |
setLoadDurationMs
@CanIgnoreReturnValue
public LoadEventInfo.Builder setLoadDurationMs(long loadDurationMs)
Sets the loadDurationMs.
| Parameters | |
|---|---|
long loadDurationMs |
See |
| Returns | |
|---|---|
LoadEventInfo.Builder |
This builder. |
setLoadTaskId
@CanIgnoreReturnValue
public LoadEventInfo.Builder setLoadTaskId(long loadTaskId)
Sets the loadTaskId.
| Parameters | |
|---|---|
long loadTaskId |
See |
| Returns | |
|---|---|
LoadEventInfo.Builder |
This builder. |
setResponseHeaders
@CanIgnoreReturnValue
public LoadEventInfo.Builder setResponseHeaders(Map<String, List<String>> responseHeaders)
Sets the responseHeaders.
| Parameters | |
|---|---|
Map<String, List<String>> responseHeaders |
See |
| Returns | |
|---|---|
LoadEventInfo.Builder |
This builder. |
setSteeredPathwayId
@CanIgnoreReturnValue
public LoadEventInfo.Builder setSteeredPathwayId(@Nullable String steeredPathwayId)
Sets the steeredPathwayId, the default is null.
| Parameters | |
|---|---|
@Nullable String steeredPathwayId |
See |
| Returns | |
|---|---|
LoadEventInfo.Builder |
This builder. |
setUri
@CanIgnoreReturnValue
public LoadEventInfo.Builder setUri(Uri uri)
Sets the uri.
| Parameters | |
|---|---|
Uri uri |
See |
| Returns | |
|---|---|
LoadEventInfo.Builder |
This builder. |