android-components / mozilla.components.browser.menu / BrowserMenuHighlight / ClassicHighlight

ClassicHighlight

open class ~~ClassicHighlight~~ : BrowserMenuHighlight (source) Deprecated: Replace with LowPriority or HighPriority highlight

Described how to display a highlightable menu item when it is highlighted. Replaced by LowPriority and HighPriority which lets a priority be specified. This class only exists so that mozilla.components.browser.menu.item.BrowserMenuHighlightableItem.Highlight can subclass it.

Constructors

Name Summary
<init> ClassicHighlight(startImageResource: Int, endImageResource: Int, backgroundResource: Int, colorResource: Int, canPropagate: Boolean = true)
Described how to display a highlightable menu item when it is highlighted. Replaced by LowPriority and HighPriority which lets a priority be specified. This class only exists so that mozilla.components.browser.menu.item.BrowserMenuHighlightableItem.Highlight can subclass it.

Properties

Name Summary
backgroundResource val backgroundResource: Int
canPropagate open val canPropagate: Boolean
Indicate whether other components should consider this highlight when displaying their own highlight.
colorResource val colorResource: Int
endImageResource val endImageResource: Int
label open val label: String?
startImageResource val startImageResource: Int

Functions

Name Summary
asEffect open fun asEffect(context: <ERROR CLASS>): HighPriorityHighlightEffect
Converts the highlight into a corresponding MenuEffect from concept-menu.

Inheritors

Name Summary
Highlight class ~~Highlight~~ : ClassicHighlight
Described how to display a BrowserMenuHighlightableItem when it is highlighted. Replaced by BrowserMenuHighlight which lets a priority be specified.