LayoutElementBuilders.ArcText

public final class LayoutElementBuilders.ArcText implements LayoutElementBuilders.ArcLayoutElement


A text element that can be used in an Arc.

Summary

Public methods

@Nullable LayoutElementBuilders.FontStyle

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

@Nullable ModifiersBuilders.ArcModifiers

Gets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element.

@Nullable TypeBuilders.StringProp

Gets the text to render.

Public methods

getFontStyle

@Nullable
@NonNull
public LayoutElementBuilders.FontStyle getFontStyle()

Gets the style of font to use (size, bold etc). If not specified, defaults to the platform's default body font. Intended for testing purposes only.

getModifiers

@Nullable
@NonNull
public ModifiersBuilders.ArcModifiers getModifiers()

Gets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element. Intended for testing purposes only.

getText

@Nullable
@NonNull
public TypeBuilders.StringProp getText()

Gets the text to render. Intended for testing purposes only.