LayoutElementBuilders.ArcText.Builder
class LayoutElementBuilders.ArcText.Builder
Builder for ArcText
.
Summary
Public functions
build
fun build(): LayoutElementBuilders.ArcText
Builds an instance from accumulated values.
setArcDirection
@RequiresSchemaVersion(major = 1, minor = 300)
fun setArcDirection(arcDirection: Int): LayoutElementBuilders.ArcText.Builder
Sets the direction in which this text is drawn. If not set, defaults to ARC_DIRECTION_CLOCKWISE.
setArcDirection
@RequiresSchemaVersion(major = 1, minor = 300)
fun setArcDirection(arcDirection: LayoutElementBuilders.ArcDirectionProp): LayoutElementBuilders.ArcText.Builder
Sets the direction in which this text is drawn. If not set, defaults to ARC_DIRECTION_CLOCKWISE.
setFontStyle
@RequiresSchemaVersion(major = 1, minor = 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.
setModifiers
@RequiresSchemaVersion(major = 1, minor = 0)
fun setModifiers(modifiers: ModifiersBuilders.ArcModifiers): LayoutElementBuilders.ArcText.Builder
Sets androidx.wear.protolayout.ModifiersBuilders.Modifiers
for this element.
setText
fun setText(text: String): LayoutElementBuilders.ArcText.Builder
Sets the text to render.
setText
@RequiresSchemaVersion(major = 1, minor = 0)
fun setText(text: TypeBuilders.StringProp): LayoutElementBuilders.ArcText.Builder
Sets the text to render.
Note that this field only supports static values.