Adding method to allow clients to download inbox messages without the need to call forceContentUpdate.
Two methods are added to public interface:
LeanplumInbox.downloadMessages() - Triggers downloading of messages. LeanplumInbox.syncedCallbacks will be invoked when operation is done.
LeanplumInbox.downloadMessages(InboxSyncedCallback) - Triggers downloading of messages and adds the callback to LeanplumInbox.syncedCallbacks. When downloading is complete the callback is removed from the list.
Implementation
Adding method to allow clients to download inbox messages without the need to call
forceContentUpdate
.Two methods are added to public interface:
LeanplumInbox.downloadMessages()
- Triggers downloading of messages.LeanplumInbox.syncedCallbacks
will be invoked when operation is done.LeanplumInbox.downloadMessages(InboxSyncedCallback)
- Triggers downloading of messages and adds the callback toLeanplumInbox.syncedCallbacks
. When downloading is complete the callback is removed from the list.