MessageReader

A sequential reader. Close it when finished. Reading a cursor does not acknowledge a message.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun close()

Rejects the last item and closes native ownership before returning.

Link copied to clipboard

Uses the direct Flow collector boundary. App-added buffering changes that boundary.

Link copied to clipboard
suspend fun next(): DecodedMessage?

Acknowledges the last returned item, then returns the next item. Cancellation closes this reader.

Link copied to clipboard
fun updateFilter(type: Conversations.ConversationFilterType = ConversationFilterType.ALL, consentStates: List<ConsentState>? = null)
Link copied to clipboard
fun updateScope(groupIds: List<String>?)

Null selects all groups. An empty list selects no groups. This does not rewind delivery.