-
public final class Batch.InboxBatch Inbox module
-
-
Method Summary
Modifier and Type Method Description static BatchInboxFetchergetFetcher(@NonNull() Context context)Get an inbox fetcher based on the current installation ID. static BatchInboxFetchergetFetcher(@NonNull() Context context, @NonNull() String userIdentifier, @NonNull() String authenticationKey)Get an inbox fetcher for the specified user identifier. static BatchInboxFetchergetFetcher(@NonNull() String userIdentifier, @NonNull() String authenticationKey)Get an inbox fetcher for the specified user identifier. -
-
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 notificationsauthenticationKey- 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 notificationsauthenticationKey- Secret authentication key: it should be computed your backend and given to this method
-
-
-
-