LayoutElementBuilders.ArcText.Builder


class LayoutElementBuilders.ArcText.Builder


Builder for ArcText.

Summary

Public constructors

Creates an instance of Builder.

Public functions

LayoutElementBuilders.ArcText

Builds an instance from accumulated values.

LayoutElementBuilders.ArcText.Builder
@RequiresSchemaVersion(major = 1, minor = 300)
setArcDirection(arcDirection: Int)

Sets the direction in which this text is drawn.

LayoutElementBuilders.ArcText.Builder

Sets the direction in which this text is drawn.

LayoutElementBuilders.ArcText.Builder

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

LayoutElementBuilders.ArcText.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setModifiers(modifiers: ModifiersBuilders.ArcModifiers)

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

LayoutElementBuilders.ArcText.Builder
setText(text: String)

Sets the text to render.

LayoutElementBuilders.ArcText.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setText(text: TypeBuilders.StringProp)

Sets the text to render.

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): LayoutElementBuilders.ArcText

Builds an instance from accumulated values.

setArcDirection

Added in 1.2.0
@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

Added in 1.2.0
@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

Added in 1.0.0
@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.

setText

Added in 1.0.0
fun setText(text: String): LayoutElementBuilders.ArcText.Builder

Sets the text to render.

setText

Added in 1.0.0
@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.