GetTopicsResponse.Builder

public static final class GetTopicsResponse.Builder
extends Object

java.lang.Object
   ↳ android.adservices.topics.GetTopicsResponse.Builder


GetTopicsResponse 物件的建構工具。這個類別應在測試實作中使用,作為 Topics API 的預期回應

摘要

公用建構函式

Builder(List<Topic> topics)

GetTopicsResponse 物件建立 Builder

公用方法

GetTopicsResponse build()

建構 GetTopicsResponse 執行個體。

繼承方法

公用建構函式

Builder

public Builder (List<Topic> topics)

GetTopicsResponse 物件建立 Builder

參數
topics List:傳回的主題清單。此值不能為 null

公用方法

build

public GetTopicsResponse build ()

建構 GetTopicsResponse 執行個體。

如果任何參數為空值或與 ModelVersion 和 TaxonomyVersion 大小不符,系統會擲回 IllegalArgumentException。

傳回
GetTopicsResponse