getAllConversations

open fun getAllConversations(    @NonNull context: Context,     @IntRange(from = 0) startingFrom: Int,     @IntRange(from = 1) numberOfConversation: Int): List<ThreadItem>

Call this method to retrieve all conversations from local Database.

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

Conversation list or null

See also

Parameters

context

The application context

startingFrom

The position of the conversation from where starting the load of conversations. The value must be positive. Put 0 to start loading from latest conversation.

numberOfConversation

The max number of conversation record to be retrieved, 0 will return nothing. Value should be >= 1


open fun getAllConversations(@NonNull context: Context): List<ThreadItem>

Call this method to retrieve all conversations from local Database.

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

Conversation list or null

See also

Parameters

context

The application context