ChatActionHandler

Handler allowing to listen to global popups whenever they are available. You are encouraged to create this instance as soon as possible: immediately after being created it starts listening to popup events and buffers only the latest pending one until a collector consumes it. Delivery is single-consumer and consume-once — a buffered popup is delivered to the first collector and is not broadcast or replayed to additional/later collectors.

Properties

Link copied to clipboard
abstract val popupFlow: Flow<PopupEvent>

A Flow that emits PopupEvents when popups should be displayed. A popup that arrives before collection starts is delivered to the first collector; the flow does not replay to later collectors, and each popup is delivered once (single-consumer).

Functions

Link copied to clipboard
abstract override fun close()

Removes listeners and releases internal server listener. After calling this method, this instance is dead and its features are undefined in that case.