Mesibo Group Listeners
Your app can implement the Mesibo.GroupListener
to be notified of group events. The following listeners are a part of Mesibo.GroupListener
:
Mesibo_onGroupCreated
Mesibo_onGroupCreated
is called with the group profile when you create a group by calling createGroup
API.
Mesibo_onGroupJoined
Mesibo_onGroupJoined
is called with the group profile when you are added to the group
Mesibo_onGroupLeft
Mesibo_onGroupLeft
is called with the group profile when you leave or removed from the group
Mesibo_onGroupMembers
Mesibo_onGroupMembers
is called with the group profile and an array of members when you call getMembers
API of group profile
Mesibo_onGroupMembersJoined
Mesibo_onGroupMembersJoined
is called with the group profile and an array of members when new members or admins are added to the group
Mesibo_onGroupMembersRemoved
Mesibo_onGroupMembersRemoved
is called with the group profile and an array of members when members or admins are removed from the group
Mesibo_onGroupSettings
Mesibo_onGroupMembersSettings
is called with the group settings, permissions and pins when you call getSettings
or addPin
of group profile
Mesibo_onGroupError
Mesibo_onGroupMembersError
is called with the error code when if any error in the group operations
Once you implement Mesibo.GroupListener
, add that as a global group listener as follow. You can also pass listener to individual functions as required:
Mesibo.addListener(this);