Builder
class Builder
kotlin.Any | |
↳ | android.adservices.ondevicepersonalization.RenderOutput.Builder |
A builder for RenderOutput
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
RenderOutput |
build() Builds the instance. |
RenderOutput.Builder |
setContent(value: String?) The HTML content to be rendered in a webview. |
RenderOutput.Builder |
setTemplateId(value: String?) A key in the REMOTE_DATA |
RenderOutput.Builder |
setTemplateParams(value: PersistableBundle) The parameters to be populated in the template from |
Public constructors
Public methods
build
fun build(): RenderOutput
Builds the instance. This builder should not be touched after calling this!
Return | |
---|---|
RenderOutput |
This value cannot be null . |
setContent
fun setContent(value: String?): RenderOutput.Builder
The HTML content to be rendered in a webview. If this is null, the ODP service generates HTML from the data in getTemplateId()
and getTemplateParams()
as described below.
Parameters | |
---|---|
value |
String?: This value may be null . |
setTemplateId
fun setTemplateId(value: String?): RenderOutput.Builder
A key in the REMOTE_DATA IsolatedService.getRemoteData(RequestToken)
table that points to an Apache Velocity template. This is ignored if getContent()
is not null.
Parameters | |
---|---|
value |
String?: This value may be null . |
setTemplateParams
fun setTemplateParams(value: PersistableBundle): RenderOutput.Builder
The parameters to be populated in the template from getTemplateId()
. This is ignored if getContent()
is not null.
Parameters | |
---|---|
value |
PersistableBundle: This value cannot be null . |