mibsdk
Toggle table of contents
java
Target filter
java
Switch theme
Search in API
Skip to content
mibsdk
mibsdk
/
mibsdk.api.ui
/
StatusItem
Status
Item
interface
StatusItem
:
Subscription
(
source
)
A plugin's status-line item.
cancel
removes it.
Members
Properties
ICON_
MAX_
PX
Link copied to clipboard
val
ICON_MAX_PX
:
Int
=
30
The largest status icon, in pixels, either way.
MAX_
TEXT
Link copied to clipboard
val
MAX_TEXT
:
Int
=
12
Longer text is truncated by the runtime, never rejected.
Functions
cancel
Link copied to clipboard
abstract
fun
cancel
(
)
Removes the registration.
set
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.
set
Colour
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).
set
Icon
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.
visible
In
Link copied to clipboard
abstract
fun
visibleIn
(
contexts
:
Array
<
Int
>
)
Shows the item only in these HMI contexts (
HmiContext
), e.g.