customer-android-kotlin

//core/com.kustomer.core.providers/KusChatProvider/fetchConversations

fetchConversations

[androidJvm]
abstract suspend fun fetchConversations(page: Int, pageSize: Int): KusResult<List<KusConversation>>

Returns previous list of conversations for the current user. If Hide Chat History is enabled in Synchronous Chat Settings, then only open conversations will be sent in response. If Hide Chat History is disabled, then all the previous open and closed conversations will be sent in response.

Note: This is a suspend function and should be called from Kotlin Coroutines

Return

KusResult of type List of KusConversation

Parameters

androidJvm

   
page Current page number
pageSize Number of items to be sent in response