public static class KeyboardButton.KeyboardButtonBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
KeyboardButton |
build()
Builds the KeyboardButton object
|
KeyboardButton.KeyboardButtonBuilder |
requestContact(boolean requestContact)
*Optional*
Sets whether the button should request the users contact information when clicked
|
KeyboardButton.KeyboardButtonBuilder |
requestLocation(boolean requestLocation)
*Optional*
Sets whether the button should request the users location information when clicked
|
KeyboardButton.KeyboardButtonBuilder |
text(String text)
*Required*
Sets the text that will be displayed on this button
|
public KeyboardButton.KeyboardButtonBuilder text(String text)
text - The text that will be displayed on this buttonpublic KeyboardButton.KeyboardButtonBuilder requestContact(boolean requestContact)
requestContact - True will set the button to request the contact information, False is the defaultpublic KeyboardButton.KeyboardButtonBuilder requestLocation(boolean requestLocation)
requestLocation - True will set the button to request the location information, False is the defaultpublic KeyboardButton build()
Copyright © 2017. All rights reserved.