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 DownloadRequestbuild()DownloadRequest.BuildersetCustomCacheKey(String customCacheKey)Sets theDownloadRequest.customCacheKey.DownloadRequest.BuildersetData(byte[] data)Sets theDownloadRequest.data.DownloadRequest.BuildersetKeySetId(byte[] keySetId)Sets theDownloadRequest.keySetId.DownloadRequest.BuildersetMimeType(String mimeType)Sets theDownloadRequest.mimeType.DownloadRequest.BuildersetStreamKeys(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()
-
-