LayoutElementBuilders.SpanText.Builder

Added in 1.0.0
Deprecated in 1.2.0

class LayoutElementBuilders.SpanText.Builder : LayoutElementBuilders.Span.Builder


Builder for SpanText.

Summary

Public constructors

Public functions

LayoutElementBuilders.SpanText

Builds an instance with values accumulated in this Builder.

LayoutElementBuilders.SpanText.Builder

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

LayoutElementBuilders.SpanText.Builder

Sets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element.

LayoutElementBuilders.SpanText.Builder
setText(text: String)

Sets the text to render.

LayoutElementBuilders.SpanText.Builder

Sets the text to render.

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.2.0
Builder()

Public functions

build

Added in 1.5.0-alpha04
Deprecated in 1.5.0-alpha04
fun build(): LayoutElementBuilders.SpanText

Builds an instance with values accumulated in this Builder.

setFontStyle

Added in 1.0.0
Deprecated in 1.2.0
fun setFontStyle(fontStyle: LayoutElementBuilders.FontStyle): LayoutElementBuilders.SpanText.Builder

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

setText

Added in 1.0.0
Deprecated in 1.2.0
fun setText(text: String): LayoutElementBuilders.SpanText.Builder

Sets the text to render.

setText

Added in 1.0.0
Deprecated in 1.2.0
fun setText(text: TypeBuilders.StringProp): LayoutElementBuilders.SpanText.Builder

Sets the text to render.