public class LeanplumInbox
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addChangedHandler(InboxChangedCallback handler)
Add a callback for when the inbox receives new values from the server.
|
void |
addSyncedHandler(InboxSyncedCallback handler)
Add a callback for when the forceContentUpdate was called.
|
java.util.List<LeanplumInboxMessage> |
allMessages()
Returns a List containing all of the inbox messages sorted chronologically ascending (i.e.
|
int |
count()
Returns the number of all inbox messages on the device.
|
static void |
disableImagePrefetching()
Disable prefetching images.
|
LeanplumInboxMessage |
messageForId(java.lang.String messageId)
Returns the inbox messages associated with the given getMessageId identifier.
|
java.util.List<java.lang.String> |
messagesIds()
Returns the identifiers of all inbox messages on the device sorted in ascending
chronological order, i.e.
|
void |
removeChangedHandler(InboxChangedCallback handler)
Removes a inbox changed callback.
|
void |
removeSyncedHandler(InboxSyncedCallback handler)
Removes a inbox synced callback.
|
int |
unreadCount()
Returns the number of the unread inbox messages on the device.
|
java.util.List<LeanplumInboxMessage> |
unreadMessages()
Returns a List containing all of the unread inbox messages sorted chronologically ascending
(i.e.
|
public static void disableImagePrefetching()
public int count()
public int unreadCount()
public java.util.List<java.lang.String> messagesIds()
public java.util.List<LeanplumInboxMessage> allMessages()
public java.util.List<LeanplumInboxMessage> unreadMessages()
public LeanplumInboxMessage messageForId(java.lang.String messageId)
public void addChangedHandler(InboxChangedCallback handler)
public void removeChangedHandler(InboxChangedCallback handler)
public void addSyncedHandler(InboxSyncedCallback handler)
handler
- InboxSyncedCallback callback that need to be added.public void removeSyncedHandler(InboxSyncedCallback handler)
handler
- InboxSyncedCallback callback that need to be removed.