public interface

LayoutElementProto.SpanTextOrBuilder

 androidx.wear.protolayout.proto.LayoutElementProto.SpanTextOrBuilder

Subclasses:

LayoutElementProto.SpanText, LayoutElementProto.SpanText.Builder

Summary

Methods
public LayoutElementProto.AndroidTextStylegetAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.

public LayoutElementProto.FontStylegetFontStyle()

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

public ModifiersProto.SpanModifiersgetModifiers()

 Modifiers for this element.

public TypesProto.StringPropgetText()

 The text to render.

public booleanhasAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.

public booleanhasFontStyle()

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

public booleanhasModifiers()

 Modifiers for this element.

public booleanhasText()

 The text to render.

Methods

public boolean hasText()

 The text to render.
 
.androidx.wear.protolayout.proto.StringProp text = 1;

Returns:

Whether the text field is set.

public TypesProto.StringProp getText()

 The text to render.
 
.androidx.wear.protolayout.proto.StringProp text = 1;

Returns:

The text.

public boolean hasFontStyle()

 The style of font to use (size, bold etc). If not specified, defaults to
 the platform's default body font.
 
.androidx.wear.protolayout.proto.FontStyle font_style = 2;

Returns:

Whether the fontStyle field is set.

public LayoutElementProto.FontStyle getFontStyle()

 The style of font to use (size, bold etc). If not specified, defaults to
 the platform's default body font.
 
.androidx.wear.protolayout.proto.FontStyle font_style = 2;

Returns:

The fontStyle.

public boolean hasModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.SpanModifiers modifiers = 3;

Returns:

Whether the modifiers field is set.

public ModifiersProto.SpanModifiers getModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.SpanModifiers modifiers = 3;

Returns:

The modifiers.

public boolean hasAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.
 
.androidx.wear.protolayout.proto.AndroidTextStyle android_text_style = 4;

Returns:

Whether the androidTextStyle field is set.

public LayoutElementProto.AndroidTextStyle getAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.
 
.androidx.wear.protolayout.proto.AndroidTextStyle android_text_style = 4;

Returns:

The androidTextStyle.