public class CarouselLayoutTemplate extends LayoutTemplate
| Modifier and Type | Class and Description |
|---|---|
static class |
CarouselLayoutTemplate.CarouselColumn
This is a class to present every column in a CarouselLayout
|
| Constructor and Description |
|---|
CarouselLayoutTemplate(java.util.List<CarouselLayoutTemplate.CarouselColumn> columns)
constructor to create CarouselLayoutTemplate
|
| Modifier and Type | Method and Description |
|---|---|
void |
setImageAspectRatio(ImageAspectRatio imageAspectRatio)
Set image aspect ratio.
|
void |
setImageScaleType(com.linecorp.linesdk.message.template.ImageScaleType imageScaleType)
Set image scale type.
|
JSONObject |
toJsonObject() |
public CarouselLayoutTemplate(@NonNull
java.util.List<CarouselLayoutTemplate.CarouselColumn> columns)
columns - a list of CarouselColumnpublic void setImageAspectRatio(@Nullable
ImageAspectRatio imageAspectRatio)
imageAspectRatio - available values are rectangle (1.51:1) and square (1:1)public void setImageScaleType(@Nullable
com.linecorp.linesdk.message.template.ImageScaleType imageScaleType)
imageScaleType - @NonNull
public JSONObject toJsonObject()
throws JSONException
toJsonObject in interface JsonabletoJsonObject in class LayoutTemplateJSONException