Manage a Group
Add user to Group#
To add users to a group call the below method.
| Argument | Type | Description |
|---|---|---|
| GROUP_JID | String | Jid of the group |
| NEW_USERS_JID_LIST | List<String> | Jid list of the new users |
| flyCallback | FlyResponse | callback to observe the action status |
Remove a group member#
To remove a user from group call the below method.
| Argument | Type | Description |
|---|---|---|
| GROUP_JID | String | Jid of the group |
| REMOVING_MEMBER_JID | String | Jid of the user who is going to be removed |
| flyCallback | FlyResponse | callback to observe the action status |
Make participant as admin#
User can able to make some participant of the group as a admin to the group. The below method can be used to make someone as admin. only admins can perform this action
| Argument | Type | Description |
|---|---|---|
| GROUP_JID | String | jid of the group |
| NEW_ADMIN_JID | String | jid of the group participant |
| flyCallback | FlyResponse | callback to observe the action status |
Leave from a group#
To leave from a group in which you are a member call the below method.
| Argument | Type | Description |
|---|---|---|
| GROUP_JID | String | Jid of the group |
| USER_JID | String | jid of the participant, to exit from the group |
| flyCallback | FlyResponse | callback to observe the action status |