Skip to main content
The UI Kit provides two levels of event handling: component-level callbacks set directly on a component, and global events via the CometChatEvents singleton using Kotlin SharedFlow.

Component-Level Callbacks

Click Callbacks


Selection Mode

Enable single or multi-select on list components:

Global Events (CometChatEvents)

Global events are emitted by UI Kit components when actions happen anywhere in the app. They use Kotlin SharedFlow for reactive, type-safe event distribution. Subscribe from any coroutine scope.

Event Flows

Subscribing to Events

Emitting Events

Key Event Types

Message Events: Call Events: Conversation Events:

Component vs Global Events