MessageStream

Class to handle interactions with in-app message stream.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Handler interface for deleting a Message.

Link copied to clipboard
interface MessagesHandler

Handler interface for getting Messages for this device.

Link copied to clipboard

Handler interface for setting messages as read.

Link copied to clipboard

Generic handler for async calls to the Marigold SDK.

Properties

Link copied to clipboard

Message Read Flow - subscribe to this to handle events when messages are read on the device.

Link copied to clipboard

Unread Message Count Flow - subscribe to this to handle events when the message unread count is updated on the device.

Functions

Link copied to clipboard

Add a listener to handle when messages are read by the user.

Link copied to clipboard

Add a listener to handle when the unread message count is updated.

Link copied to clipboard

Clear the Message Stream for the device.

Link copied to clipboard

Clear the Message Stream for the device.

Link copied to clipboard

Clear the Message Stream for the device.

Link copied to clipboard

Removes a Message from appearing in a device's message stream. Does nothing if message is null.

Link copied to clipboard
suspend fun MessageStream.deleteMessage(message: Message)

Removes a Message from appearing in a device's message stream.

Link copied to clipboard

Removes a Message from appearing in a device's message stream.

Link copied to clipboard
fun getMessage(messageId: String, messageHandler: MessageStream.MessageStreamHandler<Message>?)

Retrieves a Message for a given Message ID.

Link copied to clipboard
suspend fun MessageStream.getMessage(messageId: String): Message

Retrieves a Message for a given Message ID.

Link copied to clipboard

Retrieves a Message for a given Message ID.

Link copied to clipboard

Retrieve all Messages visible for this device.

Link copied to clipboard

Retrieve all Messages visible for this device.

Link copied to clipboard

Retrieve all Messages visible for this device.

Link copied to clipboard

Asynchronously returns the total number of unread messages in the message stream.

Link copied to clipboard

Get the total number of unread messages in the message stream.

Link copied to clipboard

Get the total number of unread messages in the message stream.

Link copied to clipboard

Creates an impression for a message for a given interaction type.

Link copied to clipboard

Set the listener to handle taps on the in-app notification banner

Link copied to clipboard

Convenience method for setMessagesRead().

Link copied to clipboard
suspend fun MessageStream.setMessageRead(message: Message)

Convenience method for setMessagesRead.

Link copied to clipboard

Convenience method for setMessagesRead.

Link copied to clipboard

Marks all given messages as read and triggers an update broadcast to the unread messages count.

Link copied to clipboard
suspend fun MessageStream.setMessagesRead(messages: List<Message>)

Marks all given messages as read and triggers an update broadcast to the unread messages count.

Link copied to clipboard

Marks all given messages as read and triggers an update broadcast to the unread messages count.

Link copied to clipboard

Set the listener to handle In-App notification on display callbacks.

Link copied to clipboard
fun setUnreadMessageCount(unreadMessageCount: Int)