LayoutElementBuilders.ArcText.Builder


public final class LayoutElementBuilders.ArcText.Builder


Builder for ArcText.

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull LayoutElementBuilders.ArcText

Builds an instance from accumulated values.

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

Sets the direction in which this text is drawn.

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

Sets the direction in which this text is drawn.

@NonNull LayoutElementBuilders.ArcText.Builder

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

@NonNull LayoutElementBuilders.ArcText.Builder

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

@NonNull LayoutElementBuilders.ArcText.Builder

Sets the text to render.

@NonNull LayoutElementBuilders.ArcText.Builder

Sets the text to render.

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull LayoutElementBuilders.ArcText build()

Builds an instance from accumulated values.

setArcDirection

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 300)
public @NonNull LayoutElementBuilders.ArcText.Builder setArcDirection(int arcDirection)

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)
public @NonNull LayoutElementBuilders.ArcText.Builder setArcDirection(
    @NonNull LayoutElementBuilders.ArcDirectionProp arcDirection
)

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)
public @NonNull LayoutElementBuilders.ArcText.Builder setFontStyle(@NonNull LayoutElementBuilders.FontStyle fontStyle)

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
public @NonNull LayoutElementBuilders.ArcText.Builder setText(@NonNull String text)

Sets the text to render.

setText

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull LayoutElementBuilders.ArcText.Builder setText(@NonNull TypeBuilders.StringProp text)

Sets the text to render.

Note that this field only supports static values.