# InlineSuggestionUi.Content.Builder

Artifact: [androidx.autofill:autofill](https://developer.android.com/jetpack/androidx/releases/autofill) [View Source](https://cs.android.com/search?q=file:androidx/autofill/inline/v1/InlineSuggestionUi.java+class:androidx.autofill.inline.v1.InlineSuggestionUi.Content.Builder) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.1.0)

*** ** * ** ***


```
class InlineSuggestionUi.Content.Builder
```

<br />

*** ** * ** ***

Builder for the `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content`.

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content` | `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content.Builder#build()()` Returns a subclass of `https://developer.android.com/reference/kotlin/androidx/autofill/inline/common/SlicedContent` built by this builder. |
| `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content.Builder` | `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content.Builder#setContentDescription(java.lang.CharSequence)(contentDescription: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)` Sets the content description for the suggestion view. |
| `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content.Builder` | `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content.Builder#setEndIcon(android.graphics.drawable.Icon)(endIcon: https://developer.android.com/reference/android/graphics/drawable/Icon.html)` Sets the end icon of the suggestion UI. |
| `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content.Builder` | `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content.Builder#setHints(java.util.List<java.lang.String>)(hints: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>)` Sets hints to indicate the kind of data in the suggestion. |
| `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content.Builder` | `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content.Builder#setStartIcon(android.graphics.drawable.Icon)(startIcon: https://developer.android.com/reference/android/graphics/drawable/Icon.html)` Sets the start icon of the suggestion UI. |
| `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content.Builder` | `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content.Builder#setSubtitle(java.lang.CharSequence)(subtitle: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)` Sets the subtitle of the suggestion UI. |
| `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content.Builder` | `https://developer.android.com/reference/kotlin/androidx/autofill/inline/v1/InlineSuggestionUi.Content.Builder#setTitle(java.lang.CharSequence)(title: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)` Sets the title of the suggestion UI. |

## Public functions

### build

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.1.0)

```
fun build(): InlineSuggestionUi.Content
```

Returns a subclass of `https://developer.android.com/reference/kotlin/androidx/autofill/inline/common/SlicedContent` built by this builder.

### setContentDescription

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.1.0)

```
fun setContentDescription(contentDescription: CharSequence): InlineSuggestionUi.Content.Builder
```

Sets the content description for the suggestion view.

| Parameters |
|---|---|
| `contentDescription: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` | the content description. |

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/View.html#setContentDescription(java.lang.CharSequence)` |   |

### setEndIcon

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.1.0)

```
fun setEndIcon(endIcon: Icon): InlineSuggestionUi.Content.Builder
```

Sets the end icon of the suggestion UI.

Note that the `https://developer.android.com/reference/kotlin/androidx/autofill/inline/common/ImageViewStyle` style may specify the tint list to be applied on the icon. If you don't want that, you may disable it by calling `
Icon#setTintBlendMode(BlendMode.DST)`.

| Parameters |
|---|---|
| `endIcon: https://developer.android.com/reference/android/graphics/drawable/Icon.html` | `https://developer.android.com/reference/android/graphics/drawable/Icon.html` resource displayed at end of slice. |

### setHints

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.1.0)

```
fun setHints(hints: (Mutable)List<String!>): InlineSuggestionUi.Content.Builder
```

Sets hints to indicate the kind of data in the suggestion.

| Parameters |
|---|---|
| `hints: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>` | defined in `https://developer.android.com/reference/kotlin/androidx/autofill/inline/SuggestionHintConstants` |

### setStartIcon

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.1.0)

```
fun setStartIcon(startIcon: Icon): InlineSuggestionUi.Content.Builder
```

Sets the start icon of the suggestion UI.

Note that the `https://developer.android.com/reference/kotlin/androidx/autofill/inline/common/ImageViewStyle` style may specify the tint list to be applied on the icon. If you don't want that, you may disable it by calling `
Icon#setTintBlendMode(BlendMode.DST)`.

| Parameters |
|---|---|
| `startIcon: https://developer.android.com/reference/android/graphics/drawable/Icon.html` | `https://developer.android.com/reference/android/graphics/drawable/Icon.html` resource displayed at start of slice. |

### setSubtitle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.1.0)

```
fun setSubtitle(subtitle: CharSequence): InlineSuggestionUi.Content.Builder
```

Sets the subtitle of the suggestion UI.

| Parameters |
|---|---|
| `subtitle: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` | displayed as subtitle of slice. |

### setTitle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.1.0)

```
fun setTitle(title: CharSequence): InlineSuggestionUi.Content.Builder
```

Sets the title of the suggestion UI.

| Parameters |
|---|---|
| `title: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` | displayed as title of slice. |