Callback

interface Callback(source)

Callback interface for action modes. Supplied to startSupportActionMode (Callback)}, a Callback configures and handles events raised by a user's interaction with an action mode.

An action mode's lifecycle is as follows:

Inheritors

Functions

Link copied to clipboard
abstract fun onActionItemClicked(mode: ActionMode, item: MenuItem): Boolean
Called to report a user click on an action button.
Link copied to clipboard
abstract fun onCreateActionMode(mode: ActionMode, menu: Menu): Boolean
Called when action mode is first created.
Link copied to clipboard
abstract fun onDestroyActionMode(mode: ActionMode)
Called when an action mode is about to be exited and destroyed.
Link copied to clipboard
abstract fun onPrepareActionMode(mode: ActionMode, menu: Menu): Boolean
Called to refresh an action mode's action menu whenever it is invalidated.