Package com.pspdfkit.ui.actionmenu
Class SimpleActionMenuListener
-
- All Implemented Interfaces:
-
com.pspdfkit.ui.actionmenu.ActionMenuListener
public class SimpleActionMenuListener implements ActionMenuListener
Empty implementation for ActionMenuListener.
-
-
Constructor Summary
Constructors Constructor Description SimpleActionMenuListener()
-
Method Summary
Modifier and Type Method Description boolean
onPrepareActionMenu(@NonNull() ActionMenu actionMenu)
Called when action menu is being prepared. void
onDisplayActionMenu(@NonNull() ActionMenu actionMenu)
Called when action menu is displayed. void
onRemoveActionMenu(@NonNull() ActionMenu actionMenu)
Called when action menu is hidden. boolean
onActionMenuItemClicked(@NonNull() ActionMenu actionMenu, @NonNull() ActionMenuItem clickedItem)
Called when item inside action menu is clicked. boolean
onActionMenuItemLongClicked(@NonNull() ActionMenu actionMenu, @NonNull() ActionMenuItem clickedItem)
Called when item inside action menu is long clicked. -
-
Method Detail
-
onPrepareActionMenu
boolean onPrepareActionMenu(@NonNull() ActionMenu actionMenu)
Called when action menu is being prepared. This is called right before the menu is shown, every time it is shown. You can use this method to add new items or otherwise dynamically modify the contents.
-
onDisplayActionMenu
void onDisplayActionMenu(@NonNull() ActionMenu actionMenu)
Called when action menu is displayed.
-
onRemoveActionMenu
void onRemoveActionMenu(@NonNull() ActionMenu actionMenu)
Called when action menu is hidden.
-
onActionMenuItemClicked
boolean onActionMenuItemClicked(@NonNull() ActionMenu actionMenu, @NonNull() ActionMenuItem clickedItem)
Called when item inside action menu is clicked.
- Returns:
True if you want to consume this event.
-
onActionMenuItemLongClicked
boolean onActionMenuItemLongClicked(@NonNull() ActionMenu actionMenu, @NonNull() ActionMenuItem clickedItem)
Called when item inside action menu is long clicked.
- Returns:
True if you want to consume this event.
-
-
-
-