customer-android-kotlin

//core/com.kustomer.core.providers/KusChatProvider/fetchConversation

fetchConversation

[androidJvm]
abstract suspend fun fetchConversation(conversationId: String): KusResult<KusConversation>

Fetches the KusConversation object for the given id. Returns KusResult.Error if the conversation is not found with that id

Note: This should only be used when a network request is required and an in-memory KusConversation object should not be relied upon, such as when recovering from a lost network connection. Otherwise, use KusChatProvider.getConversation Note: This is a suspend function and should be called from Kotlin Coroutines

Return

latest KusConversation object

Parameters

androidJvm

   
conversationId to be fetched