Action

sealed interface Action

An action a view wants offered in its action bar, requested via Extras.actions.

These are requests, not instructions: the implementation decides whether and where to show anything for them, and may ignore them entirely. Implementations that draw their bar from a layout the view can reach into by id have no need for them.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard

A control that abandons the edits made in the view's edit mode.

Link copied to clipboard
data class EditMode(val isEditing: Boolean) : ActionBarProvider.Action

A control that toggles the view's edit mode, labelled according to isEditing.

Link copied to clipboard