public abstract class FlexMessageComponent extends java.lang.Object implements Jsonable
FlexMessageContainer.
FlexBoxComponent value is associated.FlexTextComponent value is associated.FlexButtonComponent value is associated.FlexImageComponent value is associated.FlexFillerComponent value is associated.FlexIconComponent value is associated.FlexSeparatorComponent value is associated.FlexSpacerComponent value is associated.For more information, @see component
| Modifier and Type | Class and Description |
|---|---|
static class |
FlexMessageComponent.Alignment
Represents the horizontal alignment of texts or images in component.
|
static class |
FlexMessageComponent.AspectMode
Represents aspect scale mode for an image in a component.
|
static class |
FlexMessageComponent.AspectRatio
Represents aspect ratio for an image in a component.
|
static class |
FlexMessageComponent.Gravity
Represents the vertical alignment of texts or images in component.
|
static class |
FlexMessageComponent.Height
Represents height of a component.
|
static class |
FlexMessageComponent.Layout |
static class |
FlexMessageComponent.Margin
Represents a spacing between a component and the previous component in the parent box.
|
static class |
FlexMessageComponent.Size
Represents a size for some components.
|
static class |
FlexMessageComponent.Style
Represents style of a component.
|
static class |
FlexMessageComponent.Type |
static class |
FlexMessageComponent.Weight |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
FLEX_VALUE_NONE |
protected FlexMessageComponent.Type |
type |
| Constructor and Description |
|---|
FlexMessageComponent(FlexMessageComponent.Type type) |
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
toJsonObject() |
protected static final int FLEX_VALUE_NONE
@NonNull protected final FlexMessageComponent.Type type
public FlexMessageComponent(@NonNull
FlexMessageComponent.Type type)
@NonNull
public JSONObject toJsonObject()
throws JSONException
toJsonObject in interface JsonableJSONException