Marketing Cloud SDK / com.salesforce.marketingcloud.messages.inbox / InboxMessageManager / deleteMessage

deleteMessage

abstract fun deleteMessage(@NonNull message: InboxMessage): Unit

Marks a InboxMessage as deleted in local storage. This will prevent the message from being shown in the future unless local storage is cleared on the device.

Parameters

message - InboxMessage: is the InboxMessage to mark as deleted.

abstract fun deleteMessage(@NonNull messageId: String): Unit

Marks a InboxMessage as deleted in local storage. This will prevent the message from being shown in the future unless local storage is cleared on the device.

Parameters

messageId - String: is the InboxMessage#id() of the InboxMessage to mark as deleted.