fetchMessages

open fun fetchMessages()

Fetches the latest inbox changes from Airship.

Normally this method is not called directly as the message list is automatically fetched when the application foregrounds or when a notification with an associated message is received.

If the fetch request completes and results in a change to the messages, onInboxUpdated will be called.


open fun fetchMessages(callback: Inbox.FetchMessagesCallback): Cancelable

Fetches the latest inbox changes from Airship.

Normally this method is not called directly as the message list is automatically fetched when the application foregrounds or when a notification with an associated message is received.

If the fetch request completes and results in a change to the messages, onInboxUpdated will be called.

Return

A cancelable object that can be used to cancel the callback.

Parameters

callback

Callback to be notified when the request finishes fetching the messages.


open fun fetchMessages(looper: Looper, callback: Inbox.FetchMessagesCallback): Cancelable

Fetches the latest inbox changes from Airship.

Normally this method is not called directly as the message list is automatically fetched when the application foregrounds or when a notification with an associated message is received.

If the fetch request completes and results in a change to the messages, onInboxUpdated will be called.

Return

A cancelable object that can be used to cancel the callback.

Parameters

callback

Callback to be notified when the request finishes fetching the messages.

looper

The looper to post the callback on.