Package com.batch.android.inbox
Class InboxFetcherInternal
- java.lang.Object
-
- com.batch.android.inbox.InboxFetcherInternal
-
public class InboxFetcherInternal extends java.lang.ObjectInternal implementation ofBatchInboxFetcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfetchNewNotifications(BatchInboxFetcher.OnNewNotificationsFetchedListener l)voidfetchNextPage(BatchInboxFetcher.OnNextPageFetchedListener listener)java.util.List<BatchInboxNotificationContent>getPublicFetchedNotifications()booleanisEndReached()voidmarkAllAsRead()voidmarkAsDeleted(BatchInboxNotificationContent notification)voidmarkAsRead(BatchInboxNotificationContent notification)static InboxFetcherInternalprovide(android.content.Context context, java.lang.String installID)static InboxFetcherInternalprovide(android.content.Context context, java.lang.String installID, boolean useCache)Init fetcher without using cache Internal use onlystatic InboxFetcherInternalprovide(android.content.Context context, java.lang.String userIdentifier, java.lang.String authenticationKey)static InboxFetcherInternalprovide(android.content.Context context, java.lang.String userIdentifier, java.lang.String authenticationKey, boolean useCache)voidsetFetchLimit(int fetchLimit)voidsetFilterSilentNotifications(boolean filterSilentNotifications)voidsetMaxPageSize(int maxPageSize)
-
-
-
Method Detail
-
provide
public static InboxFetcherInternal provide(@NonNull android.content.Context context, java.lang.String installID)
-
provide
public static InboxFetcherInternal provide(@NonNull android.content.Context context, java.lang.String installID, boolean useCache)
Init fetcher without using cache Internal use only
-
provide
public static InboxFetcherInternal provide(@NonNull android.content.Context context, @NonNull java.lang.String userIdentifier, @NonNull java.lang.String authenticationKey)
-
provide
public static InboxFetcherInternal provide(@NonNull android.content.Context context, @NonNull java.lang.String userIdentifier, @NonNull java.lang.String authenticationKey, boolean useCache)
-
setMaxPageSize
public void setMaxPageSize(int maxPageSize)
-
setFetchLimit
public void setFetchLimit(int fetchLimit)
-
setFilterSilentNotifications
public void setFilterSilentNotifications(boolean filterSilentNotifications)
-
isEndReached
public boolean isEndReached()
-
markAsRead
public void markAsRead(BatchInboxNotificationContent notification)
-
markAllAsRead
public void markAllAsRead()
-
markAsDeleted
public void markAsDeleted(BatchInboxNotificationContent notification)
-
fetchNewNotifications
public void fetchNewNotifications(BatchInboxFetcher.OnNewNotificationsFetchedListener l)
-
fetchNextPage
public void fetchNextPage(BatchInboxFetcher.OnNextPageFetchedListener listener)
-
getPublicFetchedNotifications
@NonNull public java.util.List<BatchInboxNotificationContent> getPublicFetchedNotifications()
-
-