UserEvents
emit events when the logged-in user executes actions on another user. This class provides methods to add and remove listeners for user events, as well as methods to handle specific user actions such as blocking and unblocking users.
ccUserBlocked
: Triggered when the logged-in user blocks another user.ccUserUnblocked
: Triggered when the logged-in user unblocks another user.GroupEvents
Emits events when the logged-in user performs actions related to groups. This class provides methods to listen to various group-related events and handle them accordingly.
Following are all the group events
ccGroupCreated
: Triggered when the logged-in user creates a group.ccGroupDeleted
: Triggered when the logged-in user deletes a group.ccGroupLeft
: Triggered when the logged-in user leaves a group.ccGroupMemberScopeChanged
: Triggered when the logged-in user changes the scope of another group member.ccGroupMemberBanned
: Triggered when the logged-in user bans a group member from the group.ccGroupMemberKicked
: Triggered when the logged-in user kicks another group member from the group.ccGroupMemberUnbanned
: Triggered when the logged-in user unbans a user banned from the group.ccGroupMemberJoined
: Triggered when the logged-in user joins a group.ccGroupMemberAdded
: Triggered when the logged-in user adds new members to the group.ccOwnershipChanged
: Triggered when the logged-in user transfers the ownership of their group to some other member.ConversationEvents
component emits events when the logged-in user performs actions related to conversations. This allows for the UI to be updated accordingly. Below are the events emitted by the Conversation Component:
ccConversationDeleted
: Triggered when the logged-in user deletes a conversation.MessageEvents
emits events when various actions are performed on messages within the application. These events facilitate updating the UI accordingly. Below are the events emitted by the MessageEvents component:
ccMessageSent
: Triggered whenever a loggedIn user sends any message. It can have two states: inProgress
and sent
.ccMessageEdited
: Triggered whenever a loggedIn user edits any message from the list of messages. It can have two states: inProgress
and sent
.ccMessageDeleted
: Triggered whenever a loggedIn user deletes any message from the list of messages.ccMessageRead
: Triggered whenever a loggedIn user reads any message.ccLiveReaction
: Triggered whenever a loggedIn user clicks on live reaction.onFormMessageReceived
: Triggered when a form message is received.onCardMessageReceived
: Triggered when a card message is received.onCustomInteractiveMessageReceived
: Triggered when a custom interactive message is received.onInteractionGoalCompleted
: Triggered when an interaction goal is completed.onSchedulerMessageReceived
: Triggered when a scheduler message is received.Call Events
emits events related to calls within the application. This class provides methods to listen to call-related events and handle them accordingly.
ccOutgoingCall
: Triggered when the logged-in user initiates an outgoing call.ccCallAccepted
: Triggered when a call is accepted.ccCallRejected
: Triggered when a call is rejected.ccCallEnded
: Triggered when a call is ended.UIEvents
emits events related to UI components within the CometChat UI. This class provides methods to listen to UI-related events and handle them accordingly.
Following are the UI events
showPanel
: Triggered to show an additional UI panel with custom elements.hidePanel
: Triggered to hide a previously shown UI panel.ccActiveChatChanged
: Triggered when the active chat changes, providing information about the current message, user, and group.ccOpenChat
: Triggered to open a chat with a specific user or group.