Interface MenuOption
public interface MenuOption
A configured option that the user can trigger to perform an action.
Use the MenuOptionActionFactory factory builder
helper to create menu action
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MenuOption.Builderbuilder()Getting builderDetermines which action is taken when the DTMF digit is pressed.getDtmf()A DTMF digit the user can press to trigger the configured action.
-
Method Details
-
getDtmf
DualToneMultiFrequency getDtmf()A DTMF digit the user can press to trigger the configured action.- Returns:
- dtmf
-
getAction
String getAction()Determines which action is taken when the DTMF digit is pressed. The following values are accepted: - If you want to navigate to another menu, usemenu(value). - If you want to perform another behavior you have coded in your application, usereturn (value), where(value)is the name of the method you want to execute.- Returns:
- action
-
builder
Getting builder- Returns:
- New Builder instance
-