Package 

Class Batch.Inbox

    • Method Detail

      • getFetcher

        @NonNull() static BatchInboxFetcher getFetcher(@NonNull() Context context)

        Get an inbox fetcher based on the current installation ID.Batch must be started for all of the fetcher's features to work, but you can call this method before starting Batch (such as in your activity's onCreate)

        Parameters:
        context - A valid context.
      • getFetcher

        @NonNull() static BatchInboxFetcher getFetcher(@NonNull() Context context, @NonNull() String userIdentifier, @NonNull() String authenticationKey)

        Get an inbox fetcher for the specified user identifier.Batch must be started for all of the fetcher's features to work, but you can call this method before starting Batch (such as in your activity's onCreate)

        Parameters:
        context - A valid context.
        userIdentifier - User identifier for which you want the notifications
        authenticationKey - Secret authentication key: it should be computed your backend and given to this method
      • getFetcher

        @Deprecated()@NonNull() static BatchInboxFetcher getFetcher(@NonNull() String userIdentifier, @NonNull() String authenticationKey)

        Get an inbox fetcher for the specified user identifier.Batch must be started for all of the fetcher's features to work, but you can call this method before starting Batch (such as in your activity's onCreate)

        Parameters:
        userIdentifier - User identifier for which you want the notifications
        authenticationKey - Secret authentication key: it should be computed your backend and given to this method