Hierarchy

  • BatchInboxFetcherBaseImplementation
    • BatchInboxFetcherInstallationImplementation

Constructors

Properties

_fetcherID?: string

Methods

  • Returns {
        [key: string]: string;
    }

    • [key: string]: string
  • Parameters

    • OptionalmaxPageSize: number
    • Optionallimit: number

    Returns {
        limit?: number;
        maxPageSize?: number;
    }

    • Optionallimit?: number
    • OptionalmaxPageSize?: number
  • Parameters

    • notif: {
          [key: string]: unknown;
      }
      • [key: string]: unknown

    Returns InboxNotification

  • Parameters

    • response: [{
          [key: string]: unknown;
      }]

    Returns InboxNotification[]

  • Returns Promise<void>

  • Display the landing message attached to the notification.

    Does nothing when no landing message is attached.

    Parameters

    • notification: InboxNotification

    Returns Promise<void>

  • Call 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.

    Returns void

  • 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.

    Returns Promise<InboxFetchResult>

  • Fetch a page of notifications. Calling this method when no messages have been loaded will be equivalent to calling ()

    Returns Promise<InboxFetchResult>

  • 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.

    Returns Promise<InboxNotification[]>

  • Parameters

    • OptionalmaxPageSize: number
    • Optionallimit: number

    Returns Promise<void>

  • 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.

    Returns Promise<void>

  • 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.

    Parameters

    • notification: InboxNotification

    Returns Promise<void>

  • 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.

    Parameters

    • notification: InboxNotification

    Returns Promise<void>