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

BrowserMenuItemToolbar

class BrowserMenuItemToolbar : BrowserMenuItem (source)

A toolbar of buttons to show inside the browser menu.

Types

Name Summary
Button class Button
A button to be shown in a toolbar inside the browser menu.
TwoStateButton class TwoStateButton : Button
A button that either shows an primary state or an secondary state based on the provided isInPrimaryState lambda.

Constructors

Name Summary
<init> BrowserMenuItemToolbar(items: List<Button>)
A toolbar of buttons to show inside the browser menu.

Properties

Name Summary
visible var visible: () -> Boolean
Lambda expression that returns true if this item should be shown in the menu. Returns false if this item should be hidden.

Functions

Name Summary
bind fun bind(menu: BrowserMenu, view: <ERROR CLASS>): Unit
Called by the browser menu to display the data of this item using the passed view.
getLayoutResource fun getLayoutResource(): <ERROR CLASS>
Returns the layout resource ID of the layout to be inflated for showing a menu item of this type.
invalidate fun invalidate(view: <ERROR CLASS>): Unit
Called by the browser menu to update the displayed data of this item using the passed view.