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

<init>

BrowserMenuImageText(label: String, @DrawableRes imageResource: Int, @ColorRes iconTintColorResource: Int = NO_ID, @ColorRes textColorResource: Int = NO_ID, listener: () -> Unit = {})

A menu item for displaying text with an image icon.

Parameters

label - The visible label of this menu item.

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

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

textColorResource - Optional ID of color resource to tint the text.

listener - Callback to be invoked when this menu item is clicked.