DownloadCompletedOutput.Builder

public static final class DownloadCompletedOutput.Builder
extends Object

java.lang.Object
   ↳ android.adservices.ondevicepersonalization.DownloadCompletedOutput.Builder


A builder for DownloadCompletedOutput

Summary

Public constructors

Builder()

Public methods

DownloadCompletedOutput.Builder addRetainedKey(String value)
DownloadCompletedOutput build()

Builds the instance.

DownloadCompletedOutput.Builder setRetainedKeys(List<String> value)

The keys to be retained in the REMOTE_DATA table.

Inherited methods

Public constructors

Public methods

addRetainedKey

public DownloadCompletedOutput.Builder addRetainedKey (String value)

Parameters
value String: This value cannot be null.

Returns
DownloadCompletedOutput.Builder This value cannot be null.

build

public DownloadCompletedOutput build ()

Builds the instance. This builder should not be touched after calling this!

Returns
DownloadCompletedOutput This value cannot be null.

setRetainedKeys

public DownloadCompletedOutput.Builder setRetainedKeys (List<String> value)

The keys to be retained in the REMOTE_DATA table. Any existing keys that are not present in this list are removed from the table.

Parameters
value List: This value cannot be null.

Returns
DownloadCompletedOutput.Builder This value cannot be null.