Conversation

sealed class Conversation : Disposable

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Dm(val dm: Dm) : Conversation
Link copied to clipboard
data class Group(val group: Group) : Conversation

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun Conversation.messages(options: ListMessagesOptions? = null): List<Message>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun Conversation.prepareMessage(encoded: EncodedContent, options: SendOptions? = null): MessageId
suspend fun <T : Any> Conversation.prepareMessage(codec: ContentCodec<T>, value: T, options: SendOptions? = null): MessageId
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun Conversation.send(encoded: EncodedContent, options: SendOptions? = null): MessageId
suspend fun <T : Any> Conversation.send(codec: ContentCodec<T>, value: T, options: SendOptions? = null): MessageId
Link copied to clipboard
suspend fun Conversation.sendActions(actions: Actions, options: SendOptions? = null): MessageId
Link copied to clipboard
suspend fun Conversation.sendAttachment(attachment: Attachment, options: SendOptions? = null): MessageId
Link copied to clipboard
suspend fun Conversation.sendIntent(intent: Intent, options: SendOptions? = null): MessageId
Link copied to clipboard
suspend fun Conversation.sendMarkdown(markdown: String, options: SendOptions? = null): MessageId
Link copied to clipboard
Link copied to clipboard
suspend fun Conversation.sendReaction(reference: MessageId, referenceInboxId: InboxId?, reaction: Reaction, options: SendOptions? = null): MessageId
Link copied to clipboard
suspend fun Conversation.sendReadReceipt(options: SendOptions? = null): MessageId
Link copied to clipboard
suspend fun Conversation.sendRemoteAttachment(attachment: RemoteAttachment, options: SendOptions? = null): MessageId
Link copied to clipboard
suspend fun Conversation.sendReply(reference: MessageId, referenceInboxId: InboxId?, content: EncodedContent, options: SendOptions? = null): MessageId
Link copied to clipboard
suspend fun Conversation.sendText(text: String, options: SendOptions? = null): MessageId
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Conversation.streamMessages(options: ConversationMessageStreamOptions = ConversationMessageStreamOptions()): Flow<Message>

This cold Flow holds its client before and between collections. Each collection opens a reader. With direct sequential collection, the next read acknowledges the previous message after the collector returns. A buffer or asynchronous operator can let acknowledgement start before downstream work finishes. Cancellation cannot undo an acknowledgement that has started.

Link copied to clipboard
suspend fun Conversation.sync()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard