ChatsRx

class ChatsRx

Functions

Link copied to clipboard
fun connect(isDebugEnabled: Boolean = false): Completable

Connects a chat session.

Link copied to clipboard
fun createChat(creationType: CreationType): Completable

Creates a new chat.

Link copied to clipboard
fun getIndividualChats(): Single<List<Chat>>

Fetches all individual chats related to this user.

Properties

Link copied to clipboard
val currentChats: List<Chat>

Contains the list of chat instances associated with the current user.

Link copied to clipboard
val individualChatAdded: Observable<Chat>

Emits when a Chat is created.

Link copied to clipboard
val individualChatDeleted: Observable<Chat>

Emits when a Chat is removed.

Link copied to clipboard
val individualChatUpdated: Observable<Chat>

Emits when a Chat is updated.

Link copied to clipboard
val state: Observable<XmppClient.State>

Emits the XMPP session state whenever it changes. When a subscriber is added, it will also emit the current value.