LayoutElementBuilders.SpanText.Builder

Added in 1.0.0
Deprecated in 1.2.0

public final class LayoutElementBuilders.SpanText.Builder implements LayoutElementBuilders.Span.Builder


Builder for SpanText.

Summary

Public constructors

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.2.0
public Builder()

Public methods

build

Added in 1.5.0-alpha05
Deprecated in 1.5.0-alpha05
public @NonNull LayoutElementBuilders.SpanText build()

Builds an instance with values accumulated in this Builder.

setFontStyle

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

Sets the text to render.

setText

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

Sets the text to render.