AdSelectionOutcome.Builder

public static final class AdSelectionOutcome.Builder
extends Object

java.lang.Object
   ↳ android.adservices.adselection.AdSelectionOutcome.Builder


AdSelectionOutcome 物件的建構工具。

摘要

公用建構函式

Builder()

公用方法

AdSelectionOutcome build()

建構 AdSelectionOutcome 執行個體。

AdSelectionOutcome.Builder setAdSelectionId(long adSelectionId)

設定 mAdSelectionId。

AdSelectionOutcome.Builder setRenderUri(Uri renderUri)

設定 RenderUri。

繼承方法

公用建構函式

Builder

已新增至 API 級別 34
Ad Services Extensions 4 也已納入
public Builder ()

公用方法

build

已新增至 API 級別 34
Ad Services Extensions 4 也已納入
public AdSelectionOutcome build ()

建構一個 AdSelectionOutcome 執行個體。

傳回
AdSelectionOutcome 此值不能為 null

擲回
IllegalArgumentException 如未設定 adSelectionIid
NullPointerException 如果 RenderUri 為空值

setAdSelectionId

已新增至 API 級別 34
Ad Services Extensions 4 也已納入
public AdSelectionOutcome.Builder setAdSelectionId (long adSelectionId)

設定 mAdSelectionId。

參數
adSelectionId long

傳回
AdSelectionOutcome.Builder 此值不能為 null

setRenderUri

已新增至 API 級別 34
Ad Services Extensions 4 也已納入
public AdSelectionOutcome.Builder setRenderUri (Uri renderUri)

設定 RenderUri。

參數
renderUri Uri:此值不能為 null

傳回
AdSelectionOutcome.Builder 此值不能為 null