IRainbowImListener

Interface defining callbacks for handling events related to Instant Messaging (IM) within the SDK.

Implement this interface to receive notifications about messaging events such as incoming messages, incoming messages with application stopped, and other IM-related activities.

Samples

com.ale.rainbowsdk.samples.NotificationsSample

Functions

Link copied to clipboard
open fun notifyNewMessageWithApplicationStopped(conversation: IRainbowConversation, contact: IRainbowContact, message: IMMessage)

Invoked when the user receives a message while the application is not running.

Link copied to clipboard

Invoked when the conversations list is updated for any reason.

Link copied to clipboard
open fun onImReceived(conversation: IRainbowConversation, message: IMMessage)

Invoked when the user receives a new instant message within a conversation.

Link copied to clipboard
open fun onImSent(conversation: IRainbowConversation, message: IMMessage)

Invoked when the user successfully sends an instant message within a conversation.

Link copied to clipboard
open fun onImSentWithFilesFailure(conversation: IRainbowConversation, message: IMMessage, error: Failure)

Invoked when the user attempts to send a message with files, but encounters errors during file uploading.

Link copied to clipboard
open fun onMessagesListUpdated(status: Int, conversation: IRainbowConversation, messages: List<IMMessage>?)

Invoked when the list of messages in a conversation is updated.

Link copied to clipboard
open fun onReactionError(maxReactionReached: Boolean)

Invoked when adding a reaction to a message fails.

Link copied to clipboard
open fun onTypingStateChanged(contact: IRainbowContact, isTyping: Boolean, roomJid: String? = null)

Invoked when the typing state of a contact changes.