loadMessages

open fun loadMessages(callback: Callback<Collection<InboxMessage>, InboxMessagesException>)

Get the collection of the com.pushwoosh.inbox.data.InboxMessage that the user received This method obtains messages from network. In case the network connection is not available messages will be obtained from local database

Parameters

callback

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


open fun loadMessages(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 from network. In case the network connection is not available messages will be obtained 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 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