Retrieve Group Data
#
Get profile dataTo get the detail of a group call the below method.
- Java
- Kotlin
Arguments | Type | Description |
---|---|---|
GROUP_JID | String | Jid of the group |
FETCH_FROM_SERVER | boolean | if true fetches data from the server else from local database |
CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
#
Get Group MembersTo fetch all the groups members of a group call the below method.
- Java
- Kotlin
caution
Fetching group members from a server will be called internally when required. So , unless it was necessary set false
for getServerData.
Argument | Type | Description |
---|---|---|
GET_SERVER_DATA | boolean | if true fetches data from the server else fetches data from local database |
GROUP_JID | String | Jid of the group |
CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
#
Validate Members list server callTo check whether a server call to get the members list for a group is required or not call the below method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
GROUP_JID | String | Jid of the group |
#
Check User is a memberTo check whether a user of a given jid is a member of the group
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
GROUP_ID | String | Jid of the group |
USER_JID | String | Jid of the user |
#
Check group adminUser can able to check some participant of the group is a admin or not to the group.
The below method can be used to check someone admin or not.The below method will return true
if userJid
is admin for the provided groupJid
.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
GROUP_JID | String | Jid of the group |
USER_JID | String | Jid of the group participant |
#
Group members countTo get count of members in a group call the below method.
- Java
- Kotlin
Arguments | Data type | Description |
---|---|---|
GROUP_JID | String | Jid of the group |