クラス CarouselTemplate.CarouselTemplateBuilder
java.lang.Object
com.linecorp.bot.model.message.template.CarouselTemplate.CarouselTemplateBuilder
- 含まれているクラス:
- CarouselTemplate
public static class CarouselTemplate.CarouselTemplateBuilder
extends java.lang.Object
-
メソッドの概要
修飾子とタイプ メソッド 説明 CarouselTemplate
build()
CarouselTemplate.CarouselTemplateBuilder
columns(java.util.List<CarouselColumn> columns)
List of columns.CarouselTemplate.CarouselTemplateBuilder
imageAspectRatio(java.lang.String imageAspectRatio)
Aspect ratio of the image.CarouselTemplate.CarouselTemplateBuilder
imageSize(java.lang.String imageSize)
Size of the image.java.lang.String
toString()
クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
メソッドの詳細
-
columns
List of columns.Max: 5
- 戻り値:
this
.
-
imageAspectRatio
public CarouselTemplate.CarouselTemplateBuilder imageAspectRatio(java.lang.String imageAspectRatio)Aspect ratio of the image.Specify one of the following values:
- rectangle: 1.51:1
- square: 1:1
The default value is
rectangle
.- 戻り値:
this
.
-
imageSize
Size of the image.Specify one of the following values:
- cover: The image fills the entire image area. Parts of the image that do not fit in the area are not displayed.
- contain: The entire image is displayed in the image area. A background is displayed in the unused areas to the left and right of vertical images and in the areas above and below horizontal images.
The default value is
cover
.- 戻り値:
this
.
-
build
-
toString
public java.lang.String toString()- オーバーライド:
toString
クラス内java.lang.Object
-