[String: CometChatUserEventListener]()
Parameters | Type | Description |
---|---|---|
id | String | the key to store the component against |
observer | CometChatUserEventListener | the component listening to user events |
Parameters | Type | Description |
---|---|---|
id | String | the key of the entry to remove |
Parameters | Type | Description |
---|---|---|
user | User | the user that has been blocked |
Parameters | Type | Description |
---|---|---|
user | User | the user that has been unblocked |
void
Events | Description |
---|---|
onUserBlocked | This will get triggered when the logged in user blocks another user |
onUserUnblocked | This will get triggered when the logged in user unblocks another user |
[String: CometChatGroupEventListener]()
Parameters | Type | Description |
---|---|---|
id | String | the key to store the component against |
observer | CometChatGroupEventListener | the component listening to group events |
Parameters | Type | Description |
---|---|---|
id | String | the key of the entry to remove |
Parameters | Type | Description |
---|---|---|
group | Group | the new group that has been created |
Parameters | Type | Description |
---|---|---|
group | Group | the group that has been deleted |
Parameters | Type | Description |
---|---|---|
leftUser | User | the user that has left the group |
leftGroup | Group | the group from which the logged-user has left |
Parameters | Type | Description |
---|---|---|
updatedBy | User | the user who changed the scope of group member |
updatedUser | User | the user whose scope has been changed |
scopeChangedTo | String | the new scope |
scopeChangedFrom | String | the old scope |
group | Group | the group from where the scope change has occurred |
Parameters | Type | Description |
---|---|---|
bannedUser | User | the user that has been banned |
bannedBy | User | the user who has banned |
bannedFrom | Group | the group from which the user has been banned |
Parameters | Type | Description |
---|---|---|
kickedUser | User | the banned user that has been kicked |
kickedBy | User | the user who has kicked |
kickedGroup | Group | the group from which the user has been kicked |
Parameters | Type | Description |
---|---|---|
unbannedUser | User | the banned user that has been unbanned |
unbannedBy | User | the user who has unbanned |
unbannedFrom | Group | the group from which the banned user has been unbanned |
Parameters | Type | Description |
---|---|---|
joinedUser | User | the user that has been unblocked |
joinedGroup | Group | the group the users have been added to |
Parameters | Type | Description |
---|---|---|
members | List<User> | the list of users added |
group | Group | the group the users have been added to |
addedBy | User | the user who has added those new members |
Parameters | Type | Description |
---|---|---|
group | Group | the group where the ownership has been changed |
member | GroupMember | the group member who has been made owner of the group |
Events | Description |
---|---|
onGroupCreate | This will get triggered when the logged in user creates a group |
onGroupDelete | This will get triggered when the logged in user deletes a group |
onGroupMemberLeave | This will get triggered when the logged in user leaves a group |
onGroupMemberChangeScope | This will get triggered when the logged in user changes the scope of another group member |
onGroupMemberBan | This will get triggered when the logged in user bans a group member from the group |
onGroupMemberKick | This will get triggered when the logged in user kicks another group member from the group |
onGroupMemberUnban | This will get triggered when the logged in user unbans a user banned from the group |
onGroupMemberJoin | This will get triggered when the logged in user joins a group |
onGroupMemberAdd | This will get triggered when the logged in user add new members to the group |
onOwnershipChange | This will get triggered when the logged in user transfer the ownership of their group to some other member |
[String: CometChatConversationEventListener]()
Parameters | Type | Description |
---|---|---|
id | String | the key to store the component against |
observer | CometChatConversationEvents | the component listening to conversation events |
Parameters | Type | Description |
---|---|---|
id | String | the key of the entry to remove |
void
Parameters | Type | Description |
---|---|---|
conversation | Conversation | the user that has been deleted |
Event | Description |
---|---|
onConversationDelete | This event will be triggered when the logged in user deletes a conversation |
[String: CometChatMessageEventListener]()
Parameters | Type | Description |
---|---|---|
id | String | the key to store the component against |
observer | CometChatMessageEventListener | the component listening to message events |
Parameters | Type | Description |
---|---|---|
id | String | the key of the entry to remove |
Parameters | Type | Description |
---|---|---|
message | BaseMessage | the message that has been sent |
messageStatus | MessageStatus | the status of the message, it can be inProgress , sent or error |
Parameters | Type | Description |
---|---|---|
message | BaseMessage | the message that has been sent |
messageStatus | MessageEditStatus | the status of the message, it can be inProgress or success |
Parameters | Type | Description |
---|---|---|
message | BaseMessage | the message that has been sent |
messageStatus | EventStatus | the status of the message, it can be inProgress or success |
Parameters | Type | Description |
---|---|---|
message | BaseMessage | the message that has been read |
Parameters | Type | Description |
---|---|---|
reaction | TransientMessage | the image to send as transient message |
Parameters | Type | Description |
---|---|---|
group | Group | the group for which the information has been shown |
Parameters | Type | Description |
---|---|---|
message | BaseMessage | the message that has been updated |
Events | Description |
---|---|
onMessageSent | Triggers whenever a loggedIn user sends any message, it will have two states such as: inProgress & sent |
onMessageEdit | Triggers whenever a loggedIn user edits any message from the list of messages .it will have two states such as: inProgress & sent |
onMessageDelete | Triggers whenever a loggedIn user deletes any message from the list of messages |
onMessageRead | Triggers whenever a loggedIn user reads any message. |
onLiveReaction | Triggers whenever a loggedIn user clicks on live reaction |
onViewInformation | Triggers whenever a loggedIn user clicks on detail icon |
onParentMessageUpdate | Triggers whenever a loggedIn user updates a message that contains replies. |
[String:
CometChatCallEventListener]()
Parameters | Type | Description |
---|---|---|
id | String | the key to store the component against |
observer | CometChatCallEventListener | the component listening to call events |
Parameter | Type | Description |
---|---|---|
id | String | the key of the entry to remove |
Parameters | Type | Description |
---|---|---|
call | Call | the call that has been accepted |
Parameters | Type | Description |
---|---|---|
call | Call | the call that has been rejected |
Parameters | Type | Description |
---|---|---|
call | Call | the call that has been initiated |
Parameters | Type | Description |
---|---|---|
call | Call | the call that has been ended |
Parameters | Type | Description |
---|---|---|
call | Call | the call that has been accepted by the other user. |
Parameters | Type | Description |
---|---|---|
call | Call | the call that has been rejected by the other user. |
Event | Description |
---|---|
onIncomingCallAccepted | Triggers whenever incoming call is accepted by the user |
onIncomingCallRejected | Triggers whenever incoming call is rejected by the user |
onCallEnded | Triggers whenever the call is ended |
onCallInitiated | Triggers whenever the call is getting initiated |
onOutgoingCallAccepted | Triggers whenever outgoing call is accepted by the user |
onOutgoingCallRejected | Triggers whenever outgoing call is rejected by the user |