Retrieve Recent Chat
#
Get Recent ChatTo get the recent chat of a user or a group.
- Java
- Kotlin
Refer this doc to know more about RecentChat Class
Arguments | Type | Description |
---|---|---|
JID | String | jid of the user/group |
caution
Will return a null object if a user never made a conversation with that user/group.
#
Get Recent Chat listTo get the recent chat list 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
#
Get Recent Chat list of user by PaginationTo get the recent chat list as pagination by providing the limit.
#
InitializationFirst, create a RecentChatListParams
instance to set the recent chat list limits based on the inputs.
- Java
- Kotlin
Second, create a RecentChatListBuilder
instance.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
RECENT_CHAT_LIST_PARAM | RecentChatListParams | Insatance of 'RecentChatListParams' |
#
Load Initial Recent Chat ListTo fetch initial recent chat list of user, call the below method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
CALLBACK | FlyCallback | 'FlyCallback' implemented as lambda expression |
#
Load Next Set of Recent Chat ListTo fetch next set of data, call the below method.
- Java
- Kotlin
Argument | Type | Description |
---|---|---|
CALLBACK | FlyCallback | 'FlyCallback' implemented as lambda expression |
#
Get Recent Chat list with archived chatsTo get the recent chat list including the arhived chat conversation call the below method.
- Java
- Kotlin
#
Unread countif you want to get the unread count of chat messages, you can utilise the below method.
- Java
- Kotlin