setMessageFlow

abstract fun setMessageFlow(messageFlow: <Error class: unknown class><Message>)

Injecting the message flow, called once when the extension is initialized.

use the following to use the message flow:

messageFlow.emit(Message("Hello World!"))
// or
val action = Action("Click me!") { /* do something */ }
messageFlow.emit(Message("Hello World!", action))

Parameters

messageFlow

The shared flow to send messages to the app.