Builder


class Builder
kotlin.Any
   ↳ android.adservices.adselection.AdSelectionOutcome.Builder

Builder for AdSelectionOutcome objects.

Summary

Public constructors

Public methods
AdSelectionOutcome

Builds a AdSelectionOutcome instance.

AdSelectionOutcome.Builder
setAdSelectionId(adSelectionId: Long)

Sets the mAdSelectionId.

AdSelectionOutcome.Builder
setRenderUri(renderUri: Uri)

Sets the RenderUri.

Public constructors

Builder

Builder()

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.

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.