Class DownloadRequest.Builder
- java.lang.Object
-
- com.google.android.exoplayer2.offline.DownloadRequest.Builder
-
- Enclosing class:
- DownloadRequest
public static class DownloadRequest.Builder extends Object
A builder for download requests.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DownloadRequest
build()
DownloadRequest.Builder
setCustomCacheKey(String customCacheKey)
Sets theDownloadRequest.customCacheKey
.DownloadRequest.Builder
setData(byte[] data)
Sets theDownloadRequest.data
.DownloadRequest.Builder
setKeySetId(byte[] keySetId)
Sets theDownloadRequest.keySetId
.DownloadRequest.Builder
setMimeType(String mimeType)
Sets theDownloadRequest.mimeType
.DownloadRequest.Builder
setStreamKeys(List<StreamKey> streamKeys)
Sets theDownloadRequest.streamKeys
.
-
-
-
Method Detail
-
setMimeType
@CanIgnoreReturnValue public DownloadRequest.Builder setMimeType(@Nullable String mimeType)
Sets theDownloadRequest.mimeType
.
-
setStreamKeys
@CanIgnoreReturnValue public DownloadRequest.Builder setStreamKeys(@Nullable List<StreamKey> streamKeys)
Sets theDownloadRequest.streamKeys
.
-
setKeySetId
@CanIgnoreReturnValue public DownloadRequest.Builder setKeySetId(@Nullable byte[] keySetId)
Sets theDownloadRequest.keySetId
.
-
setCustomCacheKey
@CanIgnoreReturnValue public DownloadRequest.Builder setCustomCacheKey(@Nullable String customCacheKey)
Sets theDownloadRequest.customCacheKey
.
-
setData
@CanIgnoreReturnValue public DownloadRequest.Builder setData(@Nullable byte[] data)
Sets theDownloadRequest.data
.
-
build
public DownloadRequest build()
-
-