LayoutElementBuilders.ArcText.Builder

Added in 1.0.0
Deprecated in 1.2.0

public final class LayoutElementBuilders.ArcText.Builder implements LayoutElementBuilders.ArcLayoutElement.Builder


Builder for ArcText.

Summary

Public constructors

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.2.0
public Builder()

Public methods

build

Added in 1.4.0-alpha01
Deprecated in 1.4.0-alpha01
public @NonNull LayoutElementBuilders.ArcText build()

Builds an instance with values accumulated in this Builder.

setFontStyle

Added in 1.0.0
Deprecated in 1.2.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
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.ArcText.Builder setText(@NonNull String text)

Sets the text to render.

setText

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.ArcText.Builder setText(@NonNull TypeBuilders.StringProp text)

Sets the text to render.