android-components / mozilla.components.concept.toolbar / Toolbar / Action

# Action

`interface Action` (source)

Generic interface for actions to be added to the toolbar.

### Properties

visible | `open val visible: () -> Boolean`

### Functions

bind | `abstract fun bind(view: View): Unit`
createView | `abstract fun createView(parent: ViewGroup): View`

### Inheritors

ActionButton | `open class ActionButton : Action` An action button to be added to the toolbar.
ActionImage | `open class ActionImage : Action` An action that just shows a static, non-clickable image.
ActionSpace | `open class ActionSpace : Action` An "empty" action with a desired width to be used as "placeholder".
ActionToggleButton | `open class ActionToggleButton : Action` An action button with two states, selected and unselected. When the button is pressed, the state changes automatically.