public static interface

ToolbarActionMode.Callback

com.pdftron.pdf.utils.ToolbarActionMode.Callback

Class Overview

Callback interface to be invoked when an interaction is needed (see android.view.ActionMode.Callback).

Summary

Public Methods
abstract boolean onActionItemClicked(ToolbarActionMode mode, MenuItem item)
Called to report a user click on an action button.
abstract boolean onCreateActionMode(ToolbarActionMode mode, Menu menu)
Called when a toolbar action mode is first created.
abstract void onDestroyActionMode(ToolbarActionMode mode)
Called when a toolbar action mode is about to be exited and destroyed.
abstract boolean onPrepareActionMode(ToolbarActionMode mode, Menu menu)
Called to refresh a toolbar action mode's action menu whenever it is invalidated.

Public Methods

public abstract boolean onActionItemClicked (ToolbarActionMode mode, MenuItem item)

Called to report a user click on an action button.

Parameters
mode The current toolbar action mode
item The menu item that was clicked
Returns
  • True if this callback handled the event

public abstract boolean onCreateActionMode (ToolbarActionMode mode, Menu menu)

Called when a toolbar action mode is first created. The menu supplied will be used to generate action buttons for the action mode.

Parameters
mode The toolbar action mode being created
menu The menu used to populate action buttons
Returns
  • True if the toolbar action mode should be created, false if entering this mode should be aborted.

public abstract void onDestroyActionMode (ToolbarActionMode mode)

Called when a toolbar action mode is about to be exited and destroyed.

Parameters
mode The current toolbar action mode being destroyed

public abstract boolean onPrepareActionMode (ToolbarActionMode mode, Menu menu)

Called to refresh a toolbar action mode's action menu whenever it is invalidated.

Parameters
mode The toolbar action mode being prepared
menu The menu used to populate action buttons
Returns
  • True if the menu or toolbar action mode was updated, false otherwise.