# VirtualViewFillInfo.Builder

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

# Builder

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/view/autofill/VirtualViewFillInfo.Builder "View this page in Java")  

```
class Builder
```

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

A builder for[VirtualViewFillInfo](https://developer.android.com/reference/kotlin/android/view/autofill/VirtualViewFillInfo)

## Summary

|                                                         Public constructors                                                         ||
|----------------------------------------------------------------------------------------------------------------------------------|---|
| [Builder](https://developer.android.com/reference/kotlin/android/view/autofill/VirtualViewFillInfo.Builder#Builder())`()` <br /> |

|                                                                                                                                                                                                           Public methods                                                                                                                                                                                                            ||
|----------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [VirtualViewFillInfo](https://developer.android.com/reference/kotlin/android/view/autofill/VirtualViewFillInfo)                  | [build](https://developer.android.com/reference/kotlin/android/view/autofill/VirtualViewFillInfo.Builder#build())`()` Builds the instance.                                                                                                                                                        |
| [VirtualViewFillInfo.Builder](https://developer.android.com/reference/kotlin/android/view/autofill/VirtualViewFillInfo.Builder#) | [setAutofillHints](https://developer.android.com/reference/kotlin/android/view/autofill/VirtualViewFillInfo.Builder#setAutofillHints(kotlin.String))`(`vararg` `value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Autofill hints of the virtual view. |

## Public constructors

### Builder

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

```
Builder()
```

## Public methods

### build

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

```
fun build(): VirtualViewFillInfo
```

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

|                                                                    Return                                                                    ||
|-----------------------------------------------------------------------------------------------------------------|-----------------------------|
| [VirtualViewFillInfo](https://developer.android.com/reference/kotlin/android/view/autofill/VirtualViewFillInfo) | This value cannot be`null`. |

### setAutofillHints

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

```
fun setAutofillHints(vararg value: String!): VirtualViewFillInfo.Builder
```

Autofill hints of the virtual view.

|                                                       Parameters                                                       ||
|---------|---------------------------------------------------------------------------------------------------------------|
| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:This value cannot be`null`. |

|                                                                            Return                                                                             ||
|----------------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [VirtualViewFillInfo.Builder](https://developer.android.com/reference/kotlin/android/view/autofill/VirtualViewFillInfo.Builder#) | This value cannot be`null`. |

**See Also**

- [android.view.View#setAutofillHints(String...)](https://developer.android.com/reference/kotlin/android/view/View.html#setAutofillHints(kotlin.String))