android-components / mozilla.components.browser.menu.item / BrowserMenuItemToolbar / Button

# Button

`class Button` (source)

A button to be shown in a toolbar inside the browser menu.

### Parameters

`imageResource` - ID of a drawable resource to be shown as icon.

`contentDescription` - The button's content description, used for accessibility support.

`iconTintColorResource` - Optional ID of color resource to tint the icon.

`listener` - Callback to be invoked when the button is pressed.

### Constructors

<init> | `Button(imageResource: Int, contentDescription: String, iconTintColorResource: Int = 0, listener: () -> Unit)` A button to be shown in a toolbar inside the browser menu.

### Properties

contentDescription | `val contentDescription: String` The button's content description, used for accessibility support.
iconTintColorResource | `val iconTintColorResource: Int` Optional ID of color resource to tint the icon.
imageResource | `val imageResource: Int` ID of a drawable resource to be shown as icon.
listener | `val listener: () -> Unit` Callback to be invoked when the button is pressed.