Message Stream
Class to handle interactions with in-app message stream.
Types
Handler interface for deleting a Message.
Handler interface for getting Messages for this device.
Handler interface for setting messages as read.
Generic handler for async calls to the Marigold SDK.
Called on the main thread for an eligible attempt. Complete immediately or within two seconds, from any thread; only the first response is accepted. An unanswered attempt displays SDK UI with app defaults. Cancelled and stale responses are ignored. SUPPRESS and HANDLED create no SDK impression; a custom renderer registers its own.
Properties
Message Read Flow - subscribe to this to handle events when messages are read on the device.
Shared, independent snapshots. Null resets app-wide defaults.
App-wide font aliases for local and payload titleFont/bodyFont names. Register at app startup. Registered aliases take priority over system family names. Blank names are ignored. Maps are copied on input/access; replacing the map affects future presentations only. Fonts are not downloaded or injected into campaign HTML. Empty map clears the aliases.
Unread Message Count Flow - subscribe to this to handle events when the message unread count is updated on the device.
Functions
Add a listener to handle when messages are read by the user.
Add a listener to handle when the unread message count is updated.
Clear the Message Stream for the device.
Clear the Message Stream for the device.
Clear the Message Stream for the device.
Removes a Message from appearing in a device's message stream. Does nothing if message is null.
Removes a Message from appearing in a device's message stream.
Removes a Message from appearing in a device's message stream.
Retrieves a Message for a given Message ID.
Retrieves a Message for a given Message ID.
Retrieves a Message for a given Message ID.
Retrieve all Messages visible for this device.
Retrieve all Messages visible for this device.
Retrieve all Messages visible for this device.
Asynchronously returns the total number of unread messages in the message stream.
Get the total number of unread messages in the message stream.
Get the total number of unread messages in the message stream.
Loads the message if needed and asks the detail preparation listener before opening SDK UI. Leaves the host in front if the message is unavailable or the decision suppresses SDK display.
Creates an impression for a message for a given interaction type.
Removes the listener only if it is still the registered listener.
Removes the listener only if it is still the registered listener.
Replaces the synchronous popup listener when non-null. Null restores legacy handling.
Set the listener to handle taps on the in-app notification banner
Prepares explicit detail requests independently of automatic popup enablement.
Convenience method for setMessagesRead().
Convenience method for setMessagesRead.
Convenience method for setMessagesRead.
Marks all given messages as read and triggers an update broadcast to the unread messages count.
Marks all given messages as read and triggers an update broadcast to the unread messages count.
Marks all given messages as read and triggers an update broadcast to the unread messages count.
Set the listener to handle In-App notification on display callbacks.