Leanplum / Leanplum-Android-SDK

Leanplum's integrated solution delivers meaningful engagement across messaging and the in-app experience.
https://www.leanplum.com
Apache License 2.0
46 stars 40 forks source link

Add method for downloading inbox messages #434

Closed hborisoff closed 3 years ago

hborisoff commented 3 years ago
What Where/Who
JIRA Issue SDK-232
People Involved @hborisoff

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 to LeanplumInbox.syncedCallbacks. When downloading is complete the callback is removed from the list.