InboxMessageManager

Package: com.salesforce.marketingcloud.messages.inbox
SDK Version: 11.0.0

The InboxMessageManager interface provides functionality for managing inbox messages in the Salesforce Marketing Cloud SDK.


Listener interface for inbox refresh operations.

Listener interface for inbox response events.


Marks an InboxMessage as deleted in local storage.

Parameters:

  • message - The InboxMessage to delete
  • messageId - The ID of the message to delete

This method provides the capability to disable the InboxMessage feature on the current device using the SDK.


Enables the InboxMessage feature on the current device.


Get the number of deleted Inbox Messages regardless of their read status.

Returns: Count of deleted messages


Gets a List of Active, Deleted Inbox Messages for use with your own adapter.

Returns: List of deleted InboxMessage objects


Gets the total message count.

Returns: Total message count


Gets a List of Active, Read & Unread, not Deleted Inbox Messages for use with your own adapter.

Returns: List of active InboxMessage objects


Get the number of read, not deleted Inbox Messages.

Returns: Count of read messages


Gets a List of Active, Read, not Deleted Inbox Messages for use with your own adapter.

Returns: List of read InboxMessage objects


Get the number of unread, not deleted Inbox Messages.

Returns: Count of unread messages


Gets a List of Active, Unread, not Deleted Inbox Messages for use with your own adapter.

Returns: List of unread InboxMessage objects


Checks if the inbox feature is enabled.

Returns: Boolean indicating if inbox is enabled


Marks all active InboxMessages as deleted.


Marks all active, unread InboxMessages as read.


Requests an updated list of Inbox Messages from the Marketing Cloud Servers.

Parameters:

  • listener - Optional listener for refresh completion

Call this method to be notified of Inbox events within the Marketing Cloud SDK.

Parameters:

  • listener - The InboxResponseListener to register

Marks an InboxMessage as read in local storage.

Parameters:

  • message - The InboxMessage to mark as read
  • messageId - The ID of the message to mark as read

Unregister your InboxResponseListener listener.

Parameters:

  • listener - The InboxResponseListener to unregister