DownloadRequest.Builder


class DownloadRequest.Builder


A builder for download requests.

Summary

Public constructors

Builder(id: String!, uri: Uri!)

Creates a new instance with the specified id and uri.

Public constructors

Builder

Builder(id: String!, uri: Uri!)

Creates a new instance with the specified id and uri.

Public functions

build

fun build(): DownloadRequest!

setCustomCacheKey

@CanIgnoreReturnValue
fun setCustomCacheKey(customCacheKey: String?): DownloadRequest.Builder!

Sets the customCacheKey.

setKeySetId

@CanIgnoreReturnValue
fun setKeySetId(keySetId: ByteArray?): DownloadRequest.Builder!

Sets the keySetId.

setMimeType

@CanIgnoreReturnValue
fun setMimeType(mimeType: String?): DownloadRequest.Builder!

Sets the mimeType.

setStreamKeys

@CanIgnoreReturnValue
fun setStreamKeys(streamKeys: (Mutable)List<StreamKey!>?): DownloadRequest.Builder!

Sets the streamKeys.