LayoutElementBuilders.ArcText


@RequiresSchemaVersion(major = 1, minor = 0)
class LayoutElementBuilders.ArcText : LayoutElementBuilders.ArcLayoutElement


A text element that can be used in an Arc.

Summary

Nested types

Builder for ArcText.

Public functions

LayoutElementBuilders.ArcDirectionProp?

Gets defines the direction in which text is drawn.

LayoutElementBuilders.FontStyle?

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

ModifiersBuilders.ArcModifiers?

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

TypeBuilders.StringProp?

Gets the text to render.

String

Public functions

getArcDirection

Added in 1.2.0
fun getArcDirection(): LayoutElementBuilders.ArcDirectionProp?

Gets defines the direction in which text is drawn.

getFontStyle

Added in 1.0.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.

getText

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

Gets the text to render.

toString

fun toString(): String