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

# Builder

*** ** * ** ***

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

```
abstract class Builder
```

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

Builder for `https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo` objects.

## Summary

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo.Builder#Builder()()` <br /> |

| Public methods ||
|---|---|
| abstract [ViewStructure.HtmlInfo.Builder](https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo.Builder#)! | `https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo.Builder#addAttribute(kotlin.String,%20kotlin.String)(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Adds an HTML attribute. |
| abstract [ViewStructure.HtmlInfo](https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo)! | `https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo` object. |

## Public constructors

### Builder

```
Builder()
```

## Public methods

### addAttribute

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

```
abstract fun addAttribute(
    name: String, 
    value: String
): ViewStructure.HtmlInfo.Builder!
```

Adds an HTML attribute.

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

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo.Builder#!` | same builder, for chaining. |

### build

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

```
abstract fun build(): ViewStructure.HtmlInfo!
```

Builds the `https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo` object.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo!` | a new `https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo` instance. |