ConversationHandler

class ConversationHandler(val conversation: Conversation, val context: Context? = null, val mediaRecorderDispatcher: ExecutorCoroutineDispatcher = Executors.newSingleThreadExecutor() .asCoroutineDispatcher())

This class handles functionality related to conversation such as send and receive all kind of messages, getting older messages and participant events. pass the conversation object you received from messaging sdk pass the context if you want to use auto download feature context should not be null if auto download feature is set to true

Constructors

Link copied to clipboard
constructor(conversation: Conversation, context: Context? = null, mediaRecorderDispatcher: ExecutorCoroutineDispatcher = Executors.newSingleThreadExecutor() .asCoroutineDispatcher())

Properties

Link copied to clipboard
val context: Context? = null
Link copied to clipboard
val conversation: Conversation
Link copied to clipboard

LiveData to notify the UI about new events

Link copied to clipboard
val mediaRecorderDispatcher: ExecutorCoroutineDispatcher
Link copied to clipboard

Pagination size or the number of messages to be fetched in a single request Need to set before calling UI function

Functions

Link copied to clipboard

Call this function to reset the new event flag