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.
|
org.json.JSONObject |
toJsonObject() |
public CarouselLayoutTemplate(java.util.List<CarouselLayoutTemplate.CarouselColumn> columns)
columns - a list of CarouselColumnpublic void setImageAspectRatio(ImageAspectRatio imageAspectRatio)
imageAspectRatio - available values are rectangle (1.51:1) and square (1:1)public void setImageScaleType(com.linecorp.linesdk.message.template.ImageScaleType imageScaleType)
imageScaleType - public org.json.JSONObject toJsonObject()
throws org.json.JSONException
toJsonObject in interface JsonabletoJsonObject in class LayoutTemplateorg.json.JSONException