StatusItem

A plugin's status-line item. cancel removes it.

Properties

Link copied to clipboard
val ICON_MAX_PX: Int = 30
The largest status icon, in pixels, either way.
Link copied to clipboard
val MAX_TEXT: Int = 12
Longer text is truncated by the runtime, never rejected.

Functions

Link copied to clipboard
abstract fun cancel()
Removes the registration.
Link copied to clipboard
abstract fun set(text: String)
null or "" hides the item.
abstract fun set(text: String, icon: Icon)
Sets the text and the icon; a null icon means none.
Link copied to clipboard
abstract fun setColour(colour: UiColor)
Sets the text colour in every HMI context; null restores the bar's own colour (white, or the app palette).
Link copied to clipboard
abstract fun setIcon(icon: Icon)
Shows the icon alone, with no text (an icon-only status item); null hides the item.
Link copied to clipboard
abstract fun visibleIn(contexts: Array<Int>)
Shows the item only in these HMI contexts (HmiContext), e.g.