customer-android-kotlin

//core/com.kustomer.core.providers/KusChatProvider/getHistoricChatMessages

getHistoricChatMessages

[androidJvm]
abstract suspend fun getHistoricChatMessages(conversationId: String, page: Int, pageSize: Int): KusResult<List<Any>>

Returns paginated list of KusChatMessage if present for a conversation

Note: This should only be used to fetch messages older than 30 days. For Messages sent withing 30 days, use fetchChatMessages Note: This is a suspend function and should be called from Kotlin Coroutines

Return

List of KusChatMessage if present for a conversation

Parameters

androidJvm

   
conversationId of the conversation
page current page number
pageSize number of items to be fetched in response