Skip to main content

Overview

Events allow for a decoupled, flexible architecture where different parts of the application can interact without having to directly reference each other. This makes it easier to create complex, interactive experiences, as well as to extend and customize the functionality provided by the CometChat UI Kit. Both Components and Composite Components have the ability to emit events. These events are dispatched in response to certain changes or user interactions within the component. By emitting events, these components allow other parts of the application to react to changes or interactions, thus enabling dynamic and interactive behavior within the application.

CometChatConversationEventListener

CometChatConversationEventListener emits events when the logged-in user executes some action on a conversation object.

CometChatUserEventListener

CometChatUserEventListener emits events when the logged-in user executes some action on an user object. It consists of the following events:

CometChatGroupEventListener

CometChatGroupEventListener emits events when the logged-in user executes some action on a group object. It consists of the following events:

CometChatMessageEvents

CometChatMessageEvents emits events when the logged-in user executes some action on a message object. It consists of the following events:

CometChatCallEvents

CometChatCallEvents emits events when the logged-in user executes some action on a call object. It consists of the following events:

CometChatUIEventListener

UI events, refer to actions or interactions performed by a user within the CometChat’s UI Kit. These events are triggered when a user interacts with various UI elements, such as buttons, menus, checkboxes, input fields, or any other interactive components. It consists of the following events: