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

Builder

Added in API level 35
public Builder ()

Public methods

addRetainedKey

Added in API level 35
public DownloadCompletedOutput.Builder addRetainedKey (String value)

Parameters
value String: This value cannot be null.

Returns
DownloadCompletedOutput.Builder This value cannot be null.

build

Added in API level 35
public DownloadCompletedOutput build ()

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

Returns
DownloadCompletedOutput This value cannot be null.

setRetainedKeys

Added in API level 35
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.