Manage a Group
#
Add user to GroupTo add users to a group call the below method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
GROUP_JID | String | Jid of the group |
NEW_USERS_JID_LIST | List<String> | Jid list of the new users |
CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
#
Get user list to add to a groupTo get the list of users who are eligible to add to a old group call the below method.
- Java
- Kotlin
warning
Those two methods above are available only if contact sync is enabled.
Argument | Type | Description |
---|---|---|
GROUP_JID | String | Jid of the group |
#
Remove a group memberTo remove a user from group call the below method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
GROUP_JID | String | Jid of the group |
REMOVING_MEMBER_JID | String | Jid of the user who is going to be removed |
CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
#
Make participant as adminUser 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
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
GROUP_JID | String | jid of the group |
NEW_ADMIN_JID | String | jid of the group participant |
LISTENER | ChatActionListener | callback to observe the action status |
#
Revoke Admin AccessUsers with admin privileges can revoke a participant's admin access within the group. Only group admins can be perform this action using the below method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
GROUP_JID | String | jid of the group |
REVOKE_ADMIN_JID | String | jid of the group participant |
LISTENER | ChatActionListener | callback to observe the action status |
#
Leave from a groupTo leave from a group in which you are a member call the below method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
GROUP_JID | String | Jid of the group |
USER_JID | String | jid of the participant, to exit from the group |
CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |