Callback listeners
Observe Group Events Individually#
To observe group related events you can implement the following listeners
Group Profile Fetched#
When the request for fetching a group profile is completed successfully this callback will be triggered.
Group notification message received#
When events like new member added or member removed a notification message will be generated locally and inserted in the local database. After insertion this callback will be triggered.
New group created#
When a new group was created like when someone added you to a group this callback will be triggered.
Group profile updated#
When a group profile is updated this callback will be triggered.
New member added to group#
When a new member is added to the group this callback will be triggered.
Member removed from group#
When a member is removed from the group this callback will be triggered.
Fetching group members#
When a group is created, members of that group will be fetched once sucessfully fetched this callback will be triggered.
Group member became an admin#
When a group member became an admin this callback will be triggered.
Admin access revoked#
When a group member's admin access is revoked this callback will be triggered.
Member left from the group#
When a member left the group this callback will be triggered.
Group deleted locally#
When the current user delete a group locally this callback will be triggered.
Super admin delete group#
When super admin delete a group this callback will be triggered.
Observing the Group events Collectively#
Assign the listener to the appropriate class to receive event updates. Extend the class and implement the necessary event listeners collectively for streamlined integration you can register your own listener by using the below method.
tip
There can be only one message listener at a time, if you set multiple times using the below method it will replace the old listener always.