customer-android-kotlin

//core/com.kustomer.core.providers/KusChatProvider/observeUnreadCount

observeUnreadCount

[androidJvm]
abstract fun observeUnreadCount(): LiveData<Int>

Returns LiveData object with unread count. If Hide Chat History is enabled in Synchronous Chat Settings, then only unread count across open conversations will be sent in response.

Unread count would only be calculated for conversations modified in less than 30 days

Return

LiveData containing unread count