クラス CarouselTemplate
java.lang.Object
com.linecorp.bot.model.message.template.CarouselTemplate
- すべての実装されたインタフェース:
Template
public final class CarouselTemplate extends java.lang.Object implements Template
Template message with multiple columns which can be cycled like a carousel.
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static class
CarouselTemplate.CarouselTemplateBuilder
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 CarouselTemplate(java.util.List<CarouselColumn> columns)
-
メソッドの概要
修飾子とタイプ メソッド 説明 static CarouselTemplate.CarouselTemplateBuilder
builder()
boolean
equals(java.lang.Object o)
java.util.List<CarouselColumn>
getColumns()
List of columns.java.lang.String
getImageAspectRatio()
Aspect ratio of the image.java.lang.String
getImageSize()
Size of the image.int
hashCode()
java.lang.String
toString()
クラスから継承されたメソッド java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
コンストラクタの詳細
-
CarouselTemplate
-
-
メソッドの詳細
-
builder
-
getColumns
List of columns.Max: 5
-
getImageAspectRatio
public java.lang.String getImageAspectRatio()Aspect ratio of the image.Specify one of the following values:
- rectangle: 1.51:1
- square: 1:1
The default value is
rectangle
. -
getImageSize
public java.lang.String getImageSize()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
. -
equals
public boolean equals(java.lang.Object o)- オーバーライド:
equals
クラス内java.lang.Object
-
hashCode
public int hashCode()- オーバーライド:
hashCode
クラス内java.lang.Object
-
toString
public java.lang.String toString()- オーバーライド:
toString
クラス内java.lang.Object
-