public static class InlineKeyboardMarkup.InlineKeyboardMarkupBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
InlineKeyboardMarkup.InlineKeyboardMarkupBuilder |
addRow(InlineKeyboardButton... buttons)
*Optional*
Add a new row to the keyboard
|
InlineKeyboardMarkup.InlineKeyboardMarkupBuilder |
addRow(List<InlineKeyboardButton> buttons)
*Optional*
Add a new row to the keyboard
|
InlineKeyboardMarkup |
build()
Builds the InlineKeyboardMarkup object
|
InlineKeyboardMarkup.InlineKeyboardMarkupBuilder |
setCell(int row,
int column,
InlineKeyboardButton button)
*Optional*
Sets a cell of the keyboard
|
InlineKeyboardMarkup.InlineKeyboardMarkupBuilder |
setRow(int row,
InlineKeyboardButton... buttons)
*Optional*
Sets a row of the keyboard
|
InlineKeyboardMarkup.InlineKeyboardMarkupBuilder |
setRow(int row,
List<InlineKeyboardButton> buttons)
*Optional*
Sets a row of the keyboard
|
public InlineKeyboardMarkup.InlineKeyboardMarkupBuilder addRow(InlineKeyboardButton... buttons)
buttons - The buttons for the new rowpublic InlineKeyboardMarkup.InlineKeyboardMarkupBuilder addRow(List<InlineKeyboardButton> buttons)
buttons - The buttons for the new rowpublic InlineKeyboardMarkup.InlineKeyboardMarkupBuilder setRow(int row, InlineKeyboardButton... buttons)
row - The row that you want to set the buttons forbuttons - The buttons for the rowIndexOutOfBoundsException - if the row is out of rangepublic InlineKeyboardMarkup.InlineKeyboardMarkupBuilder setRow(int row, List<InlineKeyboardButton> buttons)
row - The index of the rowbuttons - The buttons for the rowIndexOutOfBoundsException - if the row is out of rangepublic InlineKeyboardMarkup.InlineKeyboardMarkupBuilder setCell(int row, int column, InlineKeyboardButton button)
row - The index of the rowcolumn - The index of the columnbutton - The value for the cellIndexOutOfBoundsException - if the row or column is out of rangepublic InlineKeyboardMarkup build()
Copyright © 2017. All rights reserved.