get Messages By Thread Id
fun getMessagesByThreadId( context: Context, conversationId: Int, messagePosition: Int? = null, pagingConfig: PagingConfig = getDefaultPageConfig()): Flow<PagingData<STWBaseMessage>>
Content copied to clipboard
Get the list of messages having the specified conversation Id.
Parameters
context
The application context
conversation Id
The conversation identifier
suspend fun getMessagesByThreadId( context: Context, conversationId: Int, @IntRange(from = 0 ) from: Int, @IntRange(from = 1 ) pageSize: Int, ascOrder: Boolean = false): List<STWBaseMessage>?
Content copied to clipboard
Get the list of messages related to the specified conversation Id.
Return
list of messages
Parameters
context
The application context
conversation Id
The conversation identifier
from
The offset of the first message starting from it will return message list based on pageSize. Value should be >= 0
page Size
The max number of message record to be retrieved, 0 will return nothing. Value should be >= 1
asc Order
false Whether the list is ordered ascending or descending