Package com.restfb.types.send
Class PersistentMenu
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.send.PersistentMenu
-
- All Implemented Interfaces:
Serializable
public class PersistentMenu extends AbstractFacebookType
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PersistentMenu()
PersistentMenu(String locale)
PersistentMenu(Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCallToAction(MenuItem item)
List<MenuItem>
getCallToActions()
Top-level menu items that user can interact with.Boolean
getComposerInputDisabled()
Set to true to disable user input in the menu.String
getLocale()
Locale of the menu.void
setComposerInputDisabled(Boolean composerInputDisabled)
Set to true to disable user input in the menu.-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
PersistentMenu
public PersistentMenu()
-
PersistentMenu
public PersistentMenu(String locale)
-
PersistentMenu
public PersistentMenu(Locale locale)
-
-
Method Detail
-
addCallToAction
public void addCallToAction(MenuItem item)
-
getLocale
public String getLocale()
Locale of the menu. We will show this menu when user locale matches the provided locale. You must at least specify a menu for the default locale. This is the menu we will fall back to if we don't find another matching the user's locale. See the list of supported locales.
-
setComposerInputDisabled
public void setComposerInputDisabled(Boolean composerInputDisabled)
Set to true to disable user input in the menu. This means users will only be able to interact with your bot via the menu, postbacks, buttons, and webviews.
-
getComposerInputDisabled
public Boolean getComposerInputDisabled()
Set to true to disable user input in the menu. This means users will only be able to interact with your bot via the menu, postbacks, buttons, and webviews.
-
getCallToActions
public List<MenuItem> getCallToActions()
Top-level menu items that user can interact with.
-
-