android-components / mozilla.components.browser.menu / HighlightableMenuItem

HighlightableMenuItem

interface HighlightableMenuItem (source)

Indicates that a menu item shows a highlight.

Properties

Name Summary
highlight abstract val highlight: BrowserMenuHighlight
Highlight object representing how the menu item will be displayed when highlighted.
isHighlighted abstract val isHighlighted: () -> Boolean
Whether or not to display the highlight

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.

Inheritors

Name Summary
BrowserMenuHighlightableItem class BrowserMenuHighlightableItem : BrowserMenuImageText, HighlightableMenuItem
A menu item for displaying text with an image icon and a highlight state which sets the background of the menu item and a second image icon to the right of the text.
BrowserMenuHighlightableSwitch class BrowserMenuHighlightableSwitch : BrowserMenuCompoundButton, HighlightableMenuItem
A browser menu switch that can show a highlighted icon.