loadCachedMessages

open fun loadCachedMessages(inboxMessage: InboxMessage, limit: Int): Collection<InboxMessage>

Get the collection of the com.pushwoosh.inbox.data.InboxMessage that the user received. This method obtains messages synchronously from local database

Parameters

inboxMessage

- This parameter provides pagination. Pass the last com.pushwoosh.inbox.data.InboxMessage that is on your current page as a parameter to get previous messages.To get the latest messages or in case the pagination is not necessary, pass null as a parameter.

limit

- amount of messages to get. Pass -1 to get all the messages


open fun loadCachedMessages(callback: Callback<Collection<InboxMessage>, InboxMessagesException>, inboxMessage: InboxMessage, limit: Int)

Get the collection of the com.pushwoosh.inbox.data.InboxMessage that the user received. This method obtains messages asynchronously from local database

Parameters

callback

- if successful, return the collection of the InboxMessages. Otherwise, return error

inboxMessage

- This parameter provides pagination. Pass the last com.pushwoosh.inbox.data.InboxMessage that is on your current page as a parameter to get previous messages.To get the latest messages or in case the pagination is not necessary, pass null as a parameter.

limit

- amount of messages to get. Pass -1 to get all the messages