LayoutElementBuilders.ArcText

Added in 1.0.0
Deprecated in 1.2.0

class LayoutElementBuilders.ArcText : LayoutElementBuilders.ArcLayoutElement


A text element that can be used in an Arc.

Summary

Public functions

LayoutElementBuilders.FontStyle?

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

ModifiersBuilders.ArcModifiers?

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

TypeBuilders.StringProp?

Gets the text to render.

Public functions

getFontStyle

Added in 1.0.0
Deprecated in 1.2.0
fun getFontStyle(): LayoutElementBuilders.FontStyle?

Gets the style of font to use (size, bold etc). If not specified, defaults to the platform's default body font. Intended for testing purposes only.

getModifiers

Added in 1.0.0
Deprecated in 1.2.0
fun getModifiers(): ModifiersBuilders.ArcModifiers?

Gets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element. Intended for testing purposes only.

getText

Added in 1.0.0
Deprecated in 1.2.0
fun getText(): TypeBuilders.StringProp?

Gets the text to render. Intended for testing purposes only.