public class

DownloadRequest.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.offline.DownloadRequest.Builder

Overview

A builder for download requests.

Summary

Constructors
publicBuilder(java.lang.String id, Uri uri)

Creates a new instance with the specified id and uri.

Methods
public DownloadRequestbuild()

public DownloadRequest.BuildersetCustomCacheKey(java.lang.String customCacheKey)

Sets the DownloadRequest.customCacheKey.

public DownloadRequest.BuildersetData(byte[] data[])

Sets the DownloadRequest.data.

public DownloadRequest.BuildersetKeySetId(byte[] keySetId[])

Sets the DownloadRequest.keySetId.

public DownloadRequest.BuildersetMimeType(java.lang.String mimeType)

Sets the DownloadRequest.mimeType.

public DownloadRequest.BuildersetStreamKeys(java.util.List<StreamKey> streamKeys)

Sets the DownloadRequest.streamKeys.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(java.lang.String id, Uri uri)

Creates a new instance with the specified id and uri.

Methods

public DownloadRequest.Builder setMimeType(java.lang.String mimeType)

Sets the DownloadRequest.mimeType.

public DownloadRequest.Builder setStreamKeys(java.util.List<StreamKey> streamKeys)

Sets the DownloadRequest.streamKeys.

public DownloadRequest.Builder setKeySetId(byte[] keySetId[])

Sets the DownloadRequest.keySetId.

public DownloadRequest.Builder setCustomCacheKey(java.lang.String customCacheKey)

Sets the DownloadRequest.customCacheKey.

public DownloadRequest.Builder setData(byte[] data[])

Sets the DownloadRequest.data.

public DownloadRequest build()