Package com.pspdfkit.ui.actionmenu
Interface ActionMenuListener
-
- All Implemented Interfaces:
public interface ActionMenuListener
Listener for action menu lifecycle and click events.
-
-
Method Summary
Modifier and Type Method Description abstract boolean
onPrepareActionMenu(@NonNull() ActionMenu actionMenu)
Called when action menu is being prepared. abstract void
onDisplayActionMenu(@NonNull() ActionMenu actionMenu)
Called when action menu is displayed. abstract void
onRemoveActionMenu(@NonNull() ActionMenu actionMenu)
Called when action menu is hidden. abstract boolean
onActionMenuItemClicked(@NonNull() ActionMenu actionMenu, @NonNull() ActionMenuItem menuItem)
Called when item inside action menu is clicked. abstract boolean
onActionMenuItemLongClicked(@NonNull() ActionMenu actionMenu, @NonNull() ActionMenuItem menuItem)
Called when item inside action menu is long clicked. -
-
Method Detail
-
onPrepareActionMenu
abstract 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
abstract void onDisplayActionMenu(@NonNull() ActionMenu actionMenu)
Called when action menu is displayed.
-
onRemoveActionMenu
abstract void onRemoveActionMenu(@NonNull() ActionMenu actionMenu)
Called when action menu is hidden.
-
onActionMenuItemClicked
abstract boolean onActionMenuItemClicked(@NonNull() ActionMenu actionMenu, @NonNull() ActionMenuItem menuItem)
Called when item inside action menu is clicked.
- Returns:
True if you want to consume this event.
-
onActionMenuItemLongClicked
abstract boolean onActionMenuItemLongClicked(@NonNull() ActionMenu actionMenu, @NonNull() ActionMenuItem menuItem)
Called when item inside action menu is long clicked.
- Returns:
True if you want to consume this event.
-
-
-
-