android.support.v7.view.ActionMode.Callback |
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:
onCreateActionMode(ActionMode, Menu)
once on initial creation
onPrepareActionMode(ActionMode, Menu)
after creation and any time the
ActionMode
is invalidated
onActionItemClicked(ActionMode, MenuItem)
any time a contextual action button is
clicked
onDestroyActionMode(ActionMode)
when the action mode is
closed
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Called to report a user click on an action button.
|
||||||||||
|
Called when action mode is first created.
|
||||||||||
|
Called when an action mode is about to be exited and destroyed.
|
||||||||||
|
Called to refresh an action mode's action menu whenever it is invalidated.
|
Called to report a user click on an action button.
mode | The current ActionMode |
---|---|
item | The item that was clicked |
Called when action mode is first created. The menu supplied will be used to generate action buttons for the action mode.
mode | ActionMode being created |
---|---|
menu | Menu used to populate action buttons |
Called when an action mode is about to be exited and destroyed.
mode | The current ActionMode being destroyed |
---|
Called to refresh an action mode's action menu whenever it is invalidated.
mode | ActionMode being prepared |
---|---|
menu | Menu used to populate action buttons |