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

ActionButton

open class ActionButton : Action (source)

An action button to be added to the toolbar.

Parameters

imageDrawable - The drawable to be shown.

contentDescription - The content description to use.

visible - Lambda that returns true or false to indicate whether this button should be shown.

padding - A optional custom padding.

listener - Callback that will be invoked whenever the button is pressed

Constructors

Name Summary
<init> ActionButton(imageDrawable: <ERROR CLASS>? = null, contentDescription: String, visible: () -> Boolean = { true }, background: Int = 0, padding: Padding? = null, listener: () -> Unit)
An action button to be added to the toolbar.

Properties

Name Summary
contentDescription val contentDescription: String
The content description to use.
imageDrawable val imageDrawable: <ERROR CLASS>?
The drawable to be shown.
visible open val visible: () -> Boolean
Lambda that returns true or false to indicate whether this button should be shown.

Functions

Name Summary
bind open fun bind(view: <ERROR CLASS>): Unit
createView open fun createView(parent: <ERROR CLASS>): <ERROR CLASS>

Inheritors

Name Summary
Button class Button : ActionButton
An action button to be added to the toolbar.