android-components / mozilla.components.browser.menu.item / BrowserMenuItemToolbar / Button / <init>

<init>

Button(imageResource: Int, contentDescription: String, iconTintColorResource: Int = 0, listener: () -> Unit)

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.