public static interface

ToolbarCoordinatorLayout.OnContextualToolbarMovementListener

com.pspdfkit.ui.toolbar.ToolbarCoordinatorLayout.OnContextualToolbarMovementListener

Class Overview

Listener for ContextualToolbar movements inside the ToolbarCoordinatorLayout.

Summary

Public Methods
abstract void onAttachContextualToolbar(ContextualToolbar toolbar)
Called when the ContextualToolbar is attached to the layout and able to move around.
abstract void onDetachContextualToolbar(ContextualToolbar toolbar)
Called when the ContextualToolbar is detached from the layout and able to move around.
abstract void onDragContextualToolbar(ContextualToolbar toolbar, int dx, int dy)
Called when the ContextualToolbar is dragged.

Public Methods

public abstract void onAttachContextualToolbar (ContextualToolbar toolbar)

Called when the ContextualToolbar is attached to the layout and able to move around.

Parameters
toolbar An attached contextual toolbar.

public abstract void onDetachContextualToolbar (ContextualToolbar toolbar)

Called when the ContextualToolbar is detached from the layout and able to move around.

Parameters
toolbar A detached contextual toolbar.

public abstract void onDragContextualToolbar (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.