RenderOutput.Builder
public
static
final
class
RenderOutput.Builder
extends Object
| java.lang.Object | |
| ↳ | android.adservices.ondevicepersonalization.RenderOutput.Builder |
This class is deprecated.
The ODP APIs are deprecated and will not be supported in future Android
releases. There is no direct replacement API available. Developers currently integrated with
these APIs must cease further integration efforts. For comprehensive details regarding this
deprecation and the future roadmap of Privacy Sandbox on Android, please consult the
official Privacy Sandbox developer documentation and announcements:
https://privacysandbox.google.com
A builder for RenderOutput
Summary
Public constructors | |
|---|---|
Builder()
|
|
Public methods | |
|---|---|
RenderOutput
|
build()
Builds the instance. |
RenderOutput.Builder
|
setContent(String value)
The HTML content to be rendered in a webview. |
RenderOutput.Builder
|
setTemplateId(String value)
A key in the REMOTE_DATA |
RenderOutput.Builder
|
setTemplateParams(PersistableBundle value)
The parameters to be populated in the template from |
Inherited methods | |
|---|---|
Public constructors
Public methods
build
public RenderOutput build ()
Builds the instance. This builder should not be touched after calling this!
| Returns | |
|---|---|
RenderOutput |
This value cannot be null. |
setContent
public RenderOutput.Builder setContent (String value)
The HTML content to be rendered in a webview. If this is null, the ODP service
generates HTML from the data in RenderOutput.getTemplateId() and RenderOutput.getTemplateParams()
as described below.
| Parameters | |
|---|---|
value |
String: This value may be null. |
| Returns | |
|---|---|
RenderOutput.Builder |
|
setTemplateId
public RenderOutput.Builder setTemplateId (String value)
A key in the REMOTE_DATA IsolatedService.getRemoteData(RequestToken) table that
points to an Apache Velocity template. This is ignored if
RenderOutput.getContent() is not null.
| Parameters | |
|---|---|
value |
String: This value may be null. |
| Returns | |
|---|---|
RenderOutput.Builder |
|
setTemplateParams
public RenderOutput.Builder setTemplateParams (PersistableBundle value)
The parameters to be populated in the template from RenderOutput.getTemplateId(). This is
ignored if RenderOutput.getContent() is not null.
| Parameters | |
|---|---|
value |
PersistableBundle: This value cannot be null. |
| Returns | |
|---|---|
RenderOutput.Builder |
|