foreground

open fun foreground(enable: Boolean, convertText: Function2<? super short[], ? super short[], CharSequence[]>, textLine1: Array<Short>, textLine2: Array<Short>)

Switch service to foreground and show a notification (which you have to since API 5)

Parameters

enable

true: show or remove foreground service notification, false: deactivate Foreground and remove notification

convertText

one or two line to display.

textLine1

Second convertText row (unused for FX-602P)

Note: called periodically. Do not log.