RenderOutput.Builder

public static final class RenderOutput.Builder
extends Object

java.lang.Object
   ↳ android.adservices.ondevicepersonalization.RenderOutput.Builder


RenderOutput 的建構工具

摘要

公用建構函式

Builder()

公用方法

RenderOutput build()

建構執行個體。

RenderOutput.Builder setContent(String value)

要在 WebView 中顯示的 HTML 內容。

RenderOutput.Builder setTemplateId(String value)

REMOTE_DATA IsolatedService#getRemoteData(RequestToken) 資料表中的鍵,指向 Apache 速率範本。

RenderOutput.Builder setTemplateParams(PersistableBundle value)

要透過 RenderOutput.getTemplateId() 在範本中填入的參數。

繼承方法

公用建構函式

公用方法

build

public RenderOutput build ()

建構執行個體。呼叫此方法後,不應觸碰此建構工具!

傳回
RenderOutput 此值不能為 null

setContent

public RenderOutput.Builder setContent (String value)

要在 WebView 中顯示的 HTML 內容。如果此值為空值,ODP 服務會根據 RenderOutput.getTemplateId()RenderOutput.getTemplateParams() 中的資料產生 HTML,如下所述。

參數
value String:此值不能為 null

傳回
RenderOutput.Builder

setTemplateId

public RenderOutput.Builder setTemplateId (String value)

REMOTE_DATA IsolatedService#getRemoteData(RequestToken) 資料表中的鍵,指向 Apache 速率範本。如果 RenderOutput.getContent() 不是空值,系統就會忽略這個欄位。

參數
value String:此值不能為 null

傳回
RenderOutput.Builder

setTemplateParams

public RenderOutput.Builder setTemplateParams (PersistableBundle value)

要在範本中填入的參數,取自 RenderOutput.getTemplateId()。如果 RenderOutput.getContent() 不是空值,系統會忽略這個欄位。

參數
value PersistableBundle:此值不能為 null

傳回
RenderOutput.Builder