load More Messages
suspend fun loadMoreMessages( context: Context, conversationId: Int?, timeout: Long = 10000): ApiResult<Boolean>
Content copied to clipboard
Call this method to load more messages of configured conversation.
This method should be called only from a coroutine or another suspend function
Same as loadMessages(Context, String, ILoadMessages) but in this case the messages will be loaded from the oldest message.
The maximum number of the message to retrieve foreach conversation is configured by the backend and has a default value can be configured manually using the configuration XML file (integer attribute key : maximum_messages_to_retrieve_default_value).
Return
ApiResult This is the callback that will be invoked to handle operation result:
Success : the load more messages request is successfully sent to the server.
Error : a local error occurred when trying to send this request to the serverContent copied to clipboard
See also
Parameters
context
The application context
conversation Id
The identifier of the conversation