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
public DownloadRequest.Builder setMimeType(@Nullable String mimeType)
Sets theDownloadRequest.mimeType
.
-
setStreamKeys
public DownloadRequest.Builder setStreamKeys(@Nullable List<StreamKey> streamKeys)
Sets theDownloadRequest.streamKeys
.
-
setKeySetId
public DownloadRequest.Builder setKeySetId(@Nullable byte[] keySetId)
Sets theDownloadRequest.keySetId
.
-
setCustomCacheKey
public DownloadRequest.Builder setCustomCacheKey(@Nullable String customCacheKey)
Sets theDownloadRequest.customCacheKey
.
-
setData
public DownloadRequest.Builder setData(@Nullable byte[] data)
Sets theDownloadRequest.data
.
-
build
public DownloadRequest build()
-
-