Added in API level 26
ViewStructure.HtmlInfo.Builder
public
static
abstract
class
ViewStructure.HtmlInfo.Builder
extends Object
java.lang.Object | |
↳ | android.view.ViewStructure.HtmlInfo.Builder |
Builder for HtmlInfo
objects.
Summary
Public constructors | |
---|---|
Builder()
|
Public methods | |
---|---|
abstract
ViewStructure.HtmlInfo.Builder
|
addAttribute(String name, String value)
Adds an HTML attribute. |
abstract
ViewStructure.HtmlInfo
|
build()
Builds the |
Inherited methods | |
---|---|
Public constructors
Builder
public Builder ()
Public methods
addAttribute
Added in API level 26
public abstract ViewStructure.HtmlInfo.Builder addAttribute (String name, String value)
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 . |
Returns | |
---|---|
ViewStructure.HtmlInfo.Builder |
same builder, for chaining. |
build
Added in API level 26
public abstract ViewStructure.HtmlInfo build ()
Builds the HtmlInfo
object.
Returns | |
---|---|
ViewStructure.HtmlInfo |
a new HtmlInfo instance. |