Added in API level 26
Builder
abstract class Builder
kotlin.Any | |
↳ | android.view.ViewStructure.HtmlInfo.Builder |
Builder for HtmlInfo
objects.
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
abstract ViewStructure.HtmlInfo.Builder! |
addAttribute(name: String, value: String) Adds an HTML attribute. |
abstract ViewStructure.HtmlInfo! |
build() Builds the |
Public constructors
Builder
Builder()
Public methods
addAttribute
Added in API level 26
abstract fun addAttribute(
name: String,
value: String
): ViewStructure.HtmlInfo.Builder!
Adds an HTML attribute.
Parameters | |
---|---|
name |
String: name of the attribute. This value cannot be null . |
value |
String: value of the attribute. This value cannot be null . |
Return | |
---|---|
ViewStructure.HtmlInfo.Builder! |
same builder, for chaining. |
build
Added in API level 26
abstract fun build(): ViewStructure.HtmlInfo!
Builds the HtmlInfo
object.
Return | |
---|---|
ViewStructure.HtmlInfo! |
a new HtmlInfo instance. |