[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  
Summary:[Ctors](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder#pubctors)\|[Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder#pubmethods)\|[Inherited Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder#inhmethods)  

# RenderOutput.Builder

`
public
static
final

class
RenderOutput.Builder
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|-----------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.adservices.ondevicepersonalization.RenderOutput.Builder |

<br />

*** ** * ** ***

A builder for[RenderOutput](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput)

## Summary

|                                                                      ### Public constructors                                                                      ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder#Builder())`() ` |

|                                                                                                                                                                                                                                                                                                                                                                                                                                        ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                        ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| ` `[RenderOutput](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput)                 | ` `[build](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder#build())`() ` Builds the instance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` `[RenderOutput.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder) | ` `[setContent](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder#setContent(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` value) ` The HTML content to be rendered in a webview.                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` `[RenderOutput.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder) | ` `[setTemplateId](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder#setTemplateId(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` value) ` A key in the REMOTE_DATA[IsolatedService#getRemoteData(RequestToken)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#getRemoteData(android.adservices.ondevicepersonalization.RequestToken))table that points to an[Apache Velocity](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/velocity.apache.org)template. |
| ` `[RenderOutput.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder) | ` `[setTemplateParams](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder#setTemplateParams(android.os.PersistableBundle))`(`[PersistableBundle](https://developer.android.com/reference/android/os/PersistableBundle)` value) ` The parameters to be populated in the template from[RenderOutput.getTemplateId()](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput#getTemplateId()).                                                                                                                                                                                      |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Public constructors

### Builder

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public Builder ()
```

<br />

<br />

## Public methods

### build

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public RenderOutput build ()
```

Builds the instance. This builder should not be touched after calling this!

<br />

|                                                                                    Returns                                                                                    ||
|-------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [RenderOutput](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput) | This value cannot be`null`. <br /> |

### setContent

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
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()](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput#getTemplateId())and[RenderOutput.getTemplateParams()](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput#getTemplateParams())as described below.

<br />

|                      Parameters                       ||
|---------|----------------------------------------------|
| `value` | `String`: This value cannot be`null`. <br /> |

|                                                                              Returns                                                                              ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [RenderOutput.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder) | <br /> |

### setTemplateId

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public RenderOutput.Builder setTemplateId (String value)
```

A key in the REMOTE_DATA[IsolatedService#getRemoteData(RequestToken)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/IsolatedService#getRemoteData(android.adservices.ondevicepersonalization.RequestToken))table that points to an[Apache Velocity](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/velocity.apache.org)template. This is ignored if[RenderOutput.getContent()](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput#getContent())is not null.

<br />

|                      Parameters                       ||
|---------|----------------------------------------------|
| `value` | `String`: This value cannot be`null`. <br /> |

|                                                                              Returns                                                                              ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [RenderOutput.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder) | <br /> |

### setTemplateParams

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public RenderOutput.Builder setTemplateParams (PersistableBundle value)
```

The parameters to be populated in the template from[RenderOutput.getTemplateId()](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput#getTemplateId()). This is ignored if[RenderOutput.getContent()](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput#getContent())is not null.

<br />

|                            Parameters                            ||
|---------|---------------------------------------------------------|
| `value` | `PersistableBundle`: This value cannot be`null`. <br /> |

|                                                                              Returns                                                                              ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [RenderOutput.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/ondevicepersonalization/RenderOutput.Builder) | <br /> |