public static class DownloadRequest.Builder extends Object
Constructor | Description |
---|---|
Builder(String id,
Uri uri) |
Creates a new instance with the specified id and uri.
|
Modifier and Type | Method | Description |
---|---|---|
DownloadRequest |
build() |
|
DownloadRequest.Builder |
setCustomCacheKey(String customCacheKey) |
Sets the
DownloadRequest.customCacheKey . |
DownloadRequest.Builder |
setData(byte[] data) |
Sets the
DownloadRequest.data . |
DownloadRequest.Builder |
setKeySetId(byte[] keySetId) |
Sets the
DownloadRequest.keySetId . |
DownloadRequest.Builder |
setMimeType(String mimeType) |
Sets the
DownloadRequest.mimeType . |
DownloadRequest.Builder |
setStreamKeys(List<StreamKey> streamKeys) |
Sets the
DownloadRequest.streamKeys . |
public DownloadRequest.Builder setMimeType(@Nullable String mimeType)
DownloadRequest.mimeType
.public DownloadRequest.Builder setStreamKeys(@Nullable List<StreamKey> streamKeys)
DownloadRequest.streamKeys
.public DownloadRequest.Builder setKeySetId(@Nullable byte[] keySetId)
DownloadRequest.keySetId
.public DownloadRequest.Builder setCustomCacheKey(@Nullable String customCacheKey)
DownloadRequest.customCacheKey
.public DownloadRequest.Builder setData(@Nullable byte[] data)
DownloadRequest.data
.public DownloadRequest build()