LayoutElementBuilders.SpanText.Builder

public static final class LayoutElementBuilders.SpanText.Builder
extends Object implements LayoutElementBuilders.Span.Builder

java.lang.Object
   ↳ androidx.wear.tiles.builders.LayoutElementBuilders.SpanText.Builder


Builder for LayoutElementBuilders.SpanText.

Summary

Public methods

LayoutElementBuilders.SpanText build()

Builds an instance with values accumulated in this Builder.

LayoutElementBuilders.SpanText.Builder setFontStyle(LayoutElementBuilders.FontStyle fontStyle)

Sets the style of font to use (size, bold etc).

LayoutElementBuilders.SpanText.Builder setFontStyle(LayoutElementBuilders.FontStyle.Builder fontStyleBuilder)

Sets the style of font to use (size, bold etc).

LayoutElementBuilders.SpanText.Builder setModifiers(ModifiersBuilders.SpanModifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

LayoutElementBuilders.SpanText.Builder setModifiers(ModifiersBuilders.SpanModifiers.Builder modifiersBuilder)

Sets ModifiersBuilders.Modifiers for this element.

LayoutElementBuilders.SpanText.Builder setText(String text)

Sets the text to render.

Inherited methods

Public methods

build

public LayoutElementBuilders.SpanText build ()

Builds an instance with values accumulated in this Builder.

Returns
LayoutElementBuilders.SpanText

setFontStyle

public LayoutElementBuilders.SpanText.Builder setFontStyle (LayoutElementBuilders.FontStyle fontStyle)

Sets the style of font to use (size, bold etc). If not specified, defaults to the platform's default body font.

Parameters
fontStyle LayoutElementBuilders.FontStyle

Returns
LayoutElementBuilders.SpanText.Builder

setFontStyle

public LayoutElementBuilders.SpanText.Builder setFontStyle (LayoutElementBuilders.FontStyle.Builder fontStyleBuilder)

Sets the style of font to use (size, bold etc). If not specified, defaults to the platform's default body font.

Parameters
fontStyleBuilder LayoutElementBuilders.FontStyle.Builder

Returns
LayoutElementBuilders.SpanText.Builder

setModifiers

public LayoutElementBuilders.SpanText.Builder setModifiers (ModifiersBuilders.SpanModifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

Parameters
modifiers ModifiersBuilders.SpanModifiers

Returns
LayoutElementBuilders.SpanText.Builder

setModifiers

public LayoutElementBuilders.SpanText.Builder setModifiers (ModifiersBuilders.SpanModifiers.Builder modifiersBuilder)

Sets ModifiersBuilders.Modifiers for this element.

Parameters
modifiersBuilder ModifiersBuilders.SpanModifiers.Builder

Returns
LayoutElementBuilders.SpanText.Builder

setText

public LayoutElementBuilders.SpanText.Builder setText (String text)

Sets the text to render.

Parameters
text String

Returns
LayoutElementBuilders.SpanText.Builder