Builder
class Builder
| kotlin.Any | |
| ↳ | android.adservices.adselection.AdSelectionOutcome.Builder |
Builder for AdSelectionOutcome objects.
Summary
| Public constructors | |
|---|---|
Builder() |
|
| Public methods | |
|---|---|
| AdSelectionOutcome |
build()Builds a |
| AdSelectionOutcome.Builder |
setAdSelectionId(adSelectionId: Long)Sets the mAdSelectionId. |
| AdSelectionOutcome.Builder |
setComponentAdUris(componentAdUris: MutableList<Uri!>)Sets the list of ad component renderUris. |
| AdSelectionOutcome.Builder |
setRenderUri(renderUri: Uri)Sets the RenderUri. |
Public constructors
Public methods
build
fun build(): AdSelectionOutcome
Builds a AdSelectionOutcome instance.
| Return | |
|---|---|
AdSelectionOutcome |
This value cannot be null. |
| Exceptions | |
|---|---|
java.lang.IllegalArgumentException |
if the adSelectionIid is not set |
java.lang.NullPointerException |
if the RenderUri is null |
setAdSelectionId
fun setAdSelectionId(adSelectionId: Long): AdSelectionOutcome.Builder
Sets the mAdSelectionId.
| Return | |
|---|---|
AdSelectionOutcome.Builder |
This value cannot be null. |
setComponentAdUris
fun setComponentAdUris(componentAdUris: MutableList<Uri!>): AdSelectionOutcome.Builder
Sets the list of ad component renderUris.
| Parameters | |
|---|---|
componentAdUris |
MutableList<Uri!>: This value cannot be null. |
| Return | |
|---|---|
AdSelectionOutcome.Builder |
This value cannot be null. |
setRenderUri
fun setRenderUri(renderUri: Uri): AdSelectionOutcome.Builder
Sets the RenderUri.
| Parameters | |
|---|---|
renderUri |
Uri: This value cannot be null. |
| Return | |
|---|---|
AdSelectionOutcome.Builder |
This value cannot be null. |