InboxMessageManager
InboxMessageManager
Package: com.salesforce.marketingcloud.messages.inbox
SDK Version: 11.0.0
Overview
The InboxMessageManager interface provides functionality for managing inbox messages in the Salesforce Marketing Cloud SDK.
Nested Types
InboxRefreshListener
1interface InboxRefreshListenerListener interface for inbox refresh operations.
InboxResponseListener
1interface InboxResponseListenerListener interface for inbox response events.
Methods
deleteMessage
1abstract fun deleteMessage(message: InboxMessage)
2abstract fun deleteMessage(messageId: String)Marks an InboxMessage as deleted in local storage.
Parameters:
message- The InboxMessage to deletemessageId- The ID of the message to delete
disableInbox
1abstract fun disableInbox()This method provides the capability to disable the InboxMessage feature on the current device using the SDK.
enableInbox
1abstract fun enableInbox()Enables the InboxMessage feature on the current device.
getDeletedMessageCount
1abstract fun getDeletedMessageCount(): IntGet the number of deleted Inbox Messages regardless of their read status.
Returns: Count of deleted messages
getDeletedMessages
1abstract fun getDeletedMessages(): List<InboxMessage>Gets a List of Active, Deleted Inbox Messages for use with your own adapter.
Returns: List of deleted InboxMessage objects
getMessageCount
1abstract fun getMessageCount(): IntGets the total message count.
Returns: Total message count
getMessages
1abstract fun getMessages(): List<InboxMessage>Gets a List of Active, Read & Unread, not Deleted Inbox Messages for use with your own adapter.
Returns: List of active InboxMessage objects
getReadMessageCount
1abstract fun getReadMessageCount(): IntGet the number of read, not deleted Inbox Messages.
Returns: Count of read messages
getReadMessages
1abstract fun getReadMessages(): List<InboxMessage>Gets a List of Active, Read, not Deleted Inbox Messages for use with your own adapter.
Returns: List of read InboxMessage objects
getUnreadMessageCount
1abstract fun getUnreadMessageCount(): IntGet the number of unread, not deleted Inbox Messages.
Returns: Count of unread messages
getUnreadMessages
1abstract fun getUnreadMessages(): List<InboxMessage>Gets a List of Active, Unread, not Deleted Inbox Messages for use with your own adapter.
Returns: List of unread InboxMessage objects
isInboxEnabled
1abstract fun isInboxEnabled(): BooleanChecks if the inbox feature is enabled.
Returns: Boolean indicating if inbox is enabled
markAllMessagesDeleted
1abstract fun markAllMessagesDeleted()Marks all active InboxMessages as deleted.
markAllMessagesRead
1abstract fun markAllMessagesRead()Marks all active, unread InboxMessages as read.
refreshInbox
1abstract fun refreshInbox(listener: InboxRefreshListener?)Requests an updated list of Inbox Messages from the Marketing Cloud Servers.
Parameters:
listener- Optional listener for refresh completion
registerInboxResponseListener
1abstract fun registerInboxResponseListener(listener: InboxResponseListener)Call this method to be notified of Inbox events within the Marketing Cloud SDK.
Parameters:
listener- The InboxResponseListener to register
setMessageRead
1abstract fun setMessageRead(message: InboxMessage)
2abstract fun setMessageRead(messageId: String)Marks an InboxMessage as read in local storage.
Parameters:
message- The InboxMessage to mark as readmessageId- The ID of the message to mark as read
unregisterInboxResponseListener
1abstract fun unregisterInboxResponseListener(listener: InboxResponseListener)Unregister your InboxResponseListener listener.
Parameters:
listener- The InboxResponseListener to unregister
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!