@Beta public enum ButtonType extends Enum<ButtonType>
Enum Constant and Description |
---|
PHONE_NUMBER
Buttons initiates a phone call to the saved number.
|
POSTBACK
Button initiates a message to be sent back.
|
WEB_URL
Button initiates a browser to open the saved web url.
|
Modifier and Type | Method and Description |
---|---|
String |
getTypeValue()
Get the value to pass back to Recast
|
static ButtonType |
parse(String stringType)
Get button type enum for string.
|
static ButtonType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ButtonType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ButtonType POSTBACK
public static final ButtonType WEB_URL
public static final ButtonType PHONE_NUMBER
public static ButtonType[] values()
for (ButtonType c : ButtonType.values()) System.out.println(c);
public static ButtonType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getTypeValue()
public static ButtonType parse(@Nonnull String stringType) throws IllegalArgumentException
stringType
- to parseIllegalArgumentException
- if the given string doesn't exactly match one of the known type values.Copyright © 2020 SAP SE. All rights reserved.