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

This function is deprecated. Deprecated in Java

Public functions

LayoutElementBuilders.SpanText

This function is deprecated. Deprecated in Java

LayoutElementBuilders.SpanText.Builder

This function is deprecated. Deprecated in Java

LayoutElementBuilders.SpanText.Builder

This function is deprecated. Deprecated in Java

LayoutElementBuilders.SpanText.Builder
setText(text: String)

This function is deprecated. Deprecated in Java

LayoutElementBuilders.SpanText.Builder

This function is deprecated. Deprecated in Java

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.2.0
Builder()

Public functions

build

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.

setModifiers

Added in 1.0.0
Deprecated in 1.2.0
fun setModifiers(modifiers: ModifiersBuilders.SpanModifiers): LayoutElementBuilders.SpanText.Builder

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

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.