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

refreshInbox

abstract fun refreshInbox(@Nullable listener: InboxRefreshListener?): Unit

Requests an updated list of Inbox Messages from the Marketing Cloud Servers. The Inbox request can be made, at most, once per minute. This throttle also includes the Inbox request that is made by the SDK when your application is brought into the foreground.

Parameters

listener - InboxRefreshListener?: Provide an instance of an InboxRefreshListener to be notified of the completion of the refresh. This listener is only guaranteed to be called for this single request and as long as the application remains in the foreground. If the application is backgrounded while the refresh request is in flight then the listener instance may become invalid due to restrictions imposed by Android, and thus cannot be notified upon completion.