Package com.pspdfkit.ui.toolbar
Interface ToolbarCoordinatorLayout.OnContextualToolbarMovementListener
-
- All Implemented Interfaces:
public interface ToolbarCoordinatorLayout.OnContextualToolbarMovementListener
Listener for ContextualToolbar movements inside the ToolbarCoordinatorLayout.
-
-
Method Summary
Modifier and Type Method Description abstract void
onDetachContextualToolbar(@NonNull() ContextualToolbar toolbar)
Called when the ContextualToolbar is detached from the layout and able to move around. abstract void
onAttachContextualToolbar(@NonNull() ContextualToolbar toolbar)
Called when the ContextualToolbar is attached to the layout and able to move around. abstract void
onDragContextualToolbar(@NonNull() ContextualToolbar toolbar, int dx, int dy)
Called when the ContextualToolbar is dragged. -
-
Method Detail
-
onDetachContextualToolbar
abstract void onDetachContextualToolbar(@NonNull() ContextualToolbar toolbar)
Called when the ContextualToolbar is detached from the layout and able to move around.
- Parameters:
toolbar
- A detached contextual toolbar.
-
onAttachContextualToolbar
abstract void onAttachContextualToolbar(@NonNull() ContextualToolbar toolbar)
Called when the ContextualToolbar is attached to the layout and able to move around.
- Parameters:
toolbar
- An attached contextual toolbar.
-
onDragContextualToolbar
abstract void onDragContextualToolbar(@NonNull() ContextualToolbar toolbar, int dx, int dy)
Called when the ContextualToolbar is dragged.
- Parameters:
toolbar
- Toolbar that was dragged / moved.dx
- Pixels moved on the x-axis.dy
- Pixels moved on the y-axis.
-
-
-
-