Moderation
#
Block a UserTo block a user call the below method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
JID_TO_BLOCK | String | JID of the user |
CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
caution
If block feature unavailable for your plan then it will throw 403 exception.
#
Unblock a UserTo unblock a user who is blocked already call the below method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
JID_TO_UNBLOCK | String | JID of the user |
CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
caution
Blocking and Unblocking valid for Single chat user only not for Group/Broadcast.
caution
If block feature unavailable for your plan then it will throw 403 exception.
#
Get user profiles that you blockedTo get the list of chat user profiles that you blocked call the below method.
- Java
- Kotlin
Argument | Description | Type | |
---|---|---|---|
SERVER_CALL | boolean | true to get the synced list from server false to get the list from local data. default value is false | |
CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
Note : To make server call internet connection is required
caution
If block feature unavailable for your plan then it will throw 403 exception.
#
Get user profiles that blocked youTo get the list of single chat user that blocked you call the below method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
SERVER_CALL | boolean | true to get the synced list from server false to get the list from local data. default value is false |
CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
Note : To make server call internet connection is required
caution
If block feature unavailable for your plan then it will throw 403 exception.
#
Mute user/GroupIf you want to mute the notifications for the chat of a user or a group, you can utilise the below method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
JID | String | jid of the chat user/ group |
MUTE_STATUS | boolean | true , if you want to mute notifications for the chat |
#
Encrypt/Decrypt media filesTo encrypt all media files while uploading to server, call below method to enable media encryption in SDK
- Java
- Kotlin
Note: If this flag enabled then all type of media files will be encrypted while uploading and stored in server, On receiver side media files will be decrypted while downloading and readable file will be stored in local storage.
#
Report User/Group MessagesThis feature is used to do report the user/group messages by selecting the message or user/group profile. If the user/group is reported by person to admin, the user's last 5 conversations or by selecting along with the selected message and previous 4 messages will be sent to the admin panel based on that chats availability. By using the below method person can achieve the User/Group report messages.
- Java
- Kotlin
Note : In this method
SELECTED_MID
is optional argument. If person selected a message to report use this param other wise ignore the param.
Argument | Type | Description |
---|---|---|
TO_USER_JID | string | Report User Jid who needs to be reported |
CHAT_TYPE | string | User chat type either single chat or group chat |
SELECTED_MID | string | Selected Message ID |
caution
If report chat feature unavailable for your plan then it will throw 403 exception.
#
Handling Banned User/GroupThis feature is used to get the users/groups admin blocked status. So that you can check the user/group available status and communicate with them. If user/group blocked by admin then you will get notify the alert message.
#
Get Own user Admin Block StatusThis method is used to get the live status of own user profile blocked/unblocked by Admin status, so that you will be navigated to show stopper screen if profile blocked by admin.
- Java
- Kotlin
#
Get Other user/group Admin Block StatusThis method is used to get the live status of other user/group profile blocked/unblocked by Admin status, so that you will be notified the profile status.
- Java
- Kotlin