Package com.linecorp.bot.model.richmenu
Class RichMenu
- java.lang.Object
-
- com.linecorp.bot.model.richmenu.RichMenu
-
- All Implemented Interfaces:
RichMenuCommonProperties
public final class RichMenu extends java.lang.Object implements RichMenuCommonProperties
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRichMenu.RichMenuBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RichMenu.RichMenuBuilderbuilder()booleanequals(java.lang.Object o)java.util.List<RichMenuArea>getAreas()Array ofRichMenuAreaobjects which define the coordinates and size of tappable areas.java.lang.StringgetChatBarText()Text displayed in the chat bar.java.lang.StringgetName()Name of the rich menu.RichMenuSizegetSize()RichMenuSizeobject which contains the width and height of the rich menu displayed in the chat.inthashCode()booleanisSelected()true to display the rich menu by default.RichMenu.RichMenuBuildertoBuilder()java.lang.StringtoString()
-
-
-
Method Detail
-
builder
public static RichMenu.RichMenuBuilder builder()
-
toBuilder
public RichMenu.RichMenuBuilder toBuilder()
-
getSize
public RichMenuSize getSize()
RichMenuSizeobject which contains the width and height of the rich menu displayed in the chat.Rich menu images must be one of the following sizes: 2500x1686, 2500x843.
- Specified by:
getSizein interfaceRichMenuCommonProperties
-
isSelected
public boolean isSelected()
true to display the rich menu by default. Otherwise, false.- Specified by:
isSelectedin interfaceRichMenuCommonProperties
-
getName
public java.lang.String getName()
Name of the rich menu. This value can be used to help manage your rich menus and is not displayed to users.Maximum of 300 characters.
- Specified by:
getNamein interfaceRichMenuCommonProperties
-
getChatBarText
public java.lang.String getChatBarText()
Text displayed in the chat bar.Maximum of 14 characters.
- Specified by:
getChatBarTextin interfaceRichMenuCommonProperties
-
getAreas
public java.util.List<RichMenuArea> getAreas()
Array ofRichMenuAreaobjects which define the coordinates and size of tappable areas.Maximum of 20 area objects.
- Specified by:
getAreasin interfaceRichMenuCommonProperties
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-