DownloadRequest.Builder


public class DownloadRequest.Builder


A builder for download requests.

Summary

Public constructors

Builder(String id, Uri uri)

Creates a new instance with the specified id and uri.

Public constructors

Builder

public Builder(String id, Uri uri)

Creates a new instance with the specified id and uri.

Public methods

build

public DownloadRequest build()

setCustomCacheKey

@CanIgnoreReturnValue
public DownloadRequest.Builder setCustomCacheKey(@Nullable String customCacheKey)

Sets the customCacheKey.

setData

@CanIgnoreReturnValue
public DownloadRequest.Builder setData(@Nullable byte[] data)

Sets the data.

setKeySetId

@CanIgnoreReturnValue
public DownloadRequest.Builder setKeySetId(@Nullable byte[] keySetId)

Sets the keySetId.