Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Builder

*** ** * ** ***

```
class Builder
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.service.autofill.Presentations.Builder](https://developer.android.com/reference/kotlin/android/service/autofill/Presentations.Builder#) |

A builder for `https://developer.android.com/reference/kotlin/android/service/autofill/Presentations`

## Summary

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/service/autofill/Presentations.Builder#Builder()()` <br /> |

| Public methods ||
|---|---|
| [Presentations](https://developer.android.com/reference/kotlin/android/service/autofill/Presentations) | `https://developer.android.com/reference/kotlin/android/service/autofill/Presentations.Builder#build()()` Builds the instance. |
| [Presentations.Builder](https://developer.android.com/reference/kotlin/android/service/autofill/Presentations.Builder#) | `https://developer.android.com/reference/kotlin/android/service/autofill/Presentations.Builder#setDialogPresentation(android.widget.RemoteViews)(value: https://developer.android.com/reference/kotlin/android/widget/RemoteViews.html#)` The presentation used to visualize this field in the [fill dialog UI](https://developer.android.com/reference/kotlin/android/service/autofill/Dataset#FillDialogUI) |
| [Presentations.Builder](https://developer.android.com/reference/kotlin/android/service/autofill/Presentations.Builder#) | `https://developer.android.com/reference/kotlin/android/service/autofill/Presentations.Builder#setInlinePresentation(android.service.autofill.InlinePresentation)(value: https://developer.android.com/reference/kotlin/android/service/autofill/InlinePresentation)` The `https://developer.android.com/reference/kotlin/android/service/autofill/InlinePresentation` used to visualize this dataset as inline suggestions. |
| [Presentations.Builder](https://developer.android.com/reference/kotlin/android/service/autofill/Presentations.Builder#) | `https://developer.android.com/reference/kotlin/android/service/autofill/Presentations.Builder#setInlineTooltipPresentation(android.service.autofill.InlinePresentation)(value: https://developer.android.com/reference/kotlin/android/service/autofill/InlinePresentation)` The `https://developer.android.com/reference/kotlin/android/service/autofill/InlinePresentation` used to show the tooltip for the `mInlinePresentation`. |
| [Presentations.Builder](https://developer.android.com/reference/kotlin/android/service/autofill/Presentations.Builder#) | `https://developer.android.com/reference/kotlin/android/service/autofill/Presentations.Builder#setMenuPresentation(android.widget.RemoteViews)(value: https://developer.android.com/reference/kotlin/android/widget/RemoteViews.html#)` The presentation used to visualize this field in fill UI. |

## Public constructors

### Builder

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
Builder()
```

## Public methods

### build

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun build(): Presentations
```

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

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/service/autofill/Presentations` | This value cannot be `null`. |

### setDialogPresentation

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun setDialogPresentation(value: RemoteViews): Presentations.Builder
```

The presentation used to visualize this field in the [fill dialog UI](https://developer.android.com/reference/kotlin/android/service/autofill/Dataset#FillDialogUI)

Theme does not work with RemoteViews layout. Avoid hardcoded text color or background color: Autofill on different platforms may have different themes.

| Parameters ||
|---|---|
| `value` | [RemoteViews](https://developer.android.com/reference/kotlin/android/widget/RemoteViews.html#): This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/service/autofill/Presentations.Builder#` | This value cannot be `null`. |

### setInlinePresentation

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun setInlinePresentation(value: InlinePresentation): Presentations.Builder
```

The `https://developer.android.com/reference/kotlin/android/service/autofill/InlinePresentation` used to visualize this dataset as inline suggestions. If the dataset supports inline suggestions, this should not be null.

| Parameters ||
|---|---|
| `value` | [InlinePresentation](https://developer.android.com/reference/kotlin/android/service/autofill/InlinePresentation): This value cannot be `null`. |

### setInlineTooltipPresentation

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun setInlineTooltipPresentation(value: InlinePresentation): Presentations.Builder
```

The `https://developer.android.com/reference/kotlin/android/service/autofill/InlinePresentation` used to show the tooltip for the `mInlinePresentation`. If the set this field, the `mInlinePresentation` should not be null.

| Parameters ||
|---|---|
| `value` | [InlinePresentation](https://developer.android.com/reference/kotlin/android/service/autofill/InlinePresentation): This value cannot be `null`. |

### setMenuPresentation

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun setMenuPresentation(value: RemoteViews): Presentations.Builder
```

The presentation used to visualize this field in fill UI.

Note: Before Android 13, this was referred to simply as "presentation" in the SDK.

Theme does not work with RemoteViews layout. Avoid hardcoded text color or background color: Autofill on different platforms may have different themes.

| Parameters ||
|---|---|
| `value` | [RemoteViews](https://developer.android.com/reference/kotlin/android/widget/RemoteViews.html#): This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/service/autofill/Presentations.Builder#` | This value cannot be `null`. |