get Message List
open fun getMessageList( @NonNull context: Context, @NonNull conversationId: String, @IntRange(from = 0 ) startingFrom: Int, @IntRange(from = 1 ) numberOfMessage: Int): List<BaseMessage>
Content copied to clipboard
Call this method to retrieve message list from local Database in the right chronological order
This method should be executed in a worker thread since it contains a lot of operation that can exceed 5sec or block the UI thread.
Return
Message list or null
Parameters
context
The application context
conversation Id
The conversation ID
starting From
The position of message from where starting the load of messages. The count of message starts from the end. The value must be positive. Put 0 to start loading from latest message in the conversation.
number Of Message
The max number of message record to be retrieved, 0 will return nothing. Value should be >= 1