public class FlexTextComponent extends FlexMessageComponent
For more information, please refer to Text component
| Modifier and Type | Class and Description |
|---|---|
static class |
FlexTextComponent.Builder
FlexTextComponent builder static inner class. |
FlexMessageComponent.Alignment, FlexMessageComponent.AspectMode, FlexMessageComponent.AspectRatio, FlexMessageComponent.Gravity, FlexMessageComponent.Height, FlexMessageComponent.Layout, FlexMessageComponent.Margin, FlexMessageComponent.Size, FlexMessageComponent.Style, FlexMessageComponent.Type, FlexMessageComponent.Weight| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAXLINES_VALUE_NONE |
FLEX_VALUE_NONE, type| Modifier and Type | Method and Description |
|---|---|
static FlexTextComponent.Builder |
newBuilder(java.lang.String text) |
JSONObject |
toJsonObject() |
protected static final int MAXLINES_VALUE_NONE
public static FlexTextComponent.Builder newBuilder(@NonNull java.lang.String text)
@NonNull
public JSONObject toJsonObject()
throws JSONException
toJsonObject in interface JsonabletoJsonObject in class FlexMessageComponentJSONException