Protected
_makeProtected
_makeProtected
_parseProtected
_parseProtected
_throwCall this once you're finished with this fetcher to release the native object and free all memory. Usually, this should be called in your State's dispose. Due to javascript limitations, not calling this will leak memory.
Calling any method after calling dispose will result in an error being thrown.
Fetch new notifications. While () is used to fetch older notifications than the ones currently loaded, this method checks for new notifications. For example, this is the method you would call on initial load, or on a "pull to refresh". The previously loaded notifications will be cleared to ensure consistency. Otherwise, a gap could be created between new notifications and your current set. Upon calling this method, please clear your cache and fill it with this method's results and ask again for more pages if you need.
Fetch a page of notifications. Calling this method when no messages have been loaded will be equivalent to calling ()
Get all of the notifications that have been fetched by this fetcher instance.
Note: This doesn't cache anything on the javascript side, but always asks the native code. Therefore, this is an expensive method to call: you should cache the result on your end.
Marks all notifications as read. Note: Please refresh your copy of the notifications using [allNotifications] to update the read status. Calling [fetchNewNotifications()]/[fetchNextPage()] right away might cause notifications to come as unread, as the server needs time to process your request.
Marks a notification as deleted.
Calling [fetchNewNotifications()]/[fetchNextPage()] right away might cause notifications to still be present, as the server needs time to process your request.
Marks a notification as read.
Note: Please refresh your copy of the notifications using [allNotifications] to update the read status. Calling [fetchNewNotifications()]/[fetchNextPage()] right away might cause notifications to come as unread, as the server needs time to process your request.
Display the landing message attached to the notification.
Does nothing when no landing message is attached.