LayoutElementBuilders.ArcText.Builder

Added in 1.0.0
Deprecated in 1.2.0

class LayoutElementBuilders.ArcText.Builder : LayoutElementBuilders.ArcLayoutElement.Builder


Builder for ArcText.

Summary

Public constructors

Public functions

LayoutElementBuilders.ArcText

Builds an instance with values accumulated in this Builder.

LayoutElementBuilders.ArcText.Builder

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

LayoutElementBuilders.ArcText.Builder

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

LayoutElementBuilders.ArcText.Builder
setText(text: String)

Sets the text to render.

LayoutElementBuilders.ArcText.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-alpha03
Deprecated in 1.5.0-alpha03
fun build(): LayoutElementBuilders.ArcText

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.ArcText.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.ArcText.Builder

Sets the text to render.

setText

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

Sets the text to render.