| Modifier and Type | Method and Description |
|---|---|
static BuyButtonBuilder |
createBuyButton(String payload)
Creates a new
BuyButton object. |
static Button |
createBuyButton(String payload,
PaymentSummary paymentSummary)
Creates a new
BuyButton object. |
static DefaultAction |
createDefaultActionButton(String url)
Creates a default action button (based on Web URL) for list template.
|
static Button |
createLoginButton(String url)
Creates a login button (which is based off from Url Button) which
redirects to an URL when clicked.
|
static Button |
createLogoutButton()
Creates a logout button which redirects to an URL when clicked.
|
static Button |
createPhoneNumberButton(String title,
String phoneNumber)
Creates a button with a phone number.
|
static Button |
createPostbackButton(String title,
String payload)
Creates a button which sends a payload back when clicked.
|
static Button |
createShareButton()
Creates a default action (which is based off from Url Button) which
redirects to an URL when clicked.
|
static Button |
createUrlButton(String title,
String url)
Creates a button which redirects to an URL when clicked.
|
static Button |
createWebViewButton(String title,
String url,
WebViewHeightRatioType ratioType)
Creates a web view button.
|
String |
toString() |
public static Button createUrlButton(String title, String url)
title - the button label.url - the URL to whom redirect when clicked.WebUrlButton.public static DefaultAction createDefaultActionButton(String url)
url - the redirect URL.DefaultAction.public static Button createWebViewButton(String title, String url, WebViewHeightRatioType ratioType)
title - the button label.url - the URL to whom redirect when clicked.ratioType - the web view ratio type.public static Button createPostbackButton(String title, String payload)
title - the button label.payload - the payload to send back when clicked.PostbackButton.public static Button createPhoneNumberButton(String title, String phoneNumber)
title - the button label.phoneNumber - a phone number. Must be in the format '+' prefix followed by
the country code, area code and local number.PostbackButton.public static Button createShareButton()
Button.public static Button createBuyButton(String payload, PaymentSummary paymentSummary)
BuyButton object.payload - the payload datapaymentSummary - the payment summary that will be displayed.Buttonpublic static BuyButtonBuilder createBuyButton(String payload)
BuyButton object.payload - the payload data.BuyButton.public static Button createLoginButton(String url)
url - the url on which the user will be authenticated.Buttonpublic static Button createLogoutButton()
Button.Copyright © 2017 BotMill. All rights reserved.