Integrate Private Chat Message | MirrorFly Chat SDK Guide
You can lock a chat by tapping the name of a one-to-one or group and selecting the lock option
Set Private Chat#
Private Chat can be enabled/disabled by calling this method.
- Java
- Kotlin
| Argument | Description | Type |
|---|---|---|
| JID | String | jid of the user/group to enable/disable private chat |
| BOOLEAN | Boolean | true to enable the private chat false to disable the private chat |
Private Chat Status#
To get the private chat status call the below method.
- Java
- Kotlin
info
The private chat status will be returned either True or False
Get Private Chats List#
An private chat won't be listed in recent chat list. To get the list of private chats call the below method.
- Java
- Kotlin
| Argument | Description | Type |
|---|---|---|
| CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
info
The method with callback runs on background thread and the one without callback didn't run on background thread
Unread count#
If you want to get the unread count of private chat messages, you can utilise the below method.
- Java
- Kotlin