chat_ui/src/notification_feed/bloc/bloc library

BLoC for notification feed

Classes

ConnectionStateChanged
Connection state changed (online/offline).
FeedItemReceived
A new feed item was received via WebSocket.
FeedItemRetracted
A feed item was retracted/deleted.
GetCategoriesUseCase
Use case for fetching notification categories.
GetFeedItemsUseCase
Use case for fetching notification feed items with pagination.
GetFeedItemUseCase
Use case for fetching a single notification feed item by ID. Used for deep linking — fetching a specific feed item by its ID.
GetUnreadCountUseCase
Use case for getting the total unread count for the notification feed.
LoadMoreFeedItems
Load more feed items (pagination — scroll to bottom).
LoadNotificationFeed
Load initial notification feed (categories + first page of items).
MarkFeedDeliveredUseCase
Use case for marking a notification feed item as delivered.
MarkFeedReadUseCase
Use case for marking a notification feed item as read.
MarkItemAsRead
Mark a feed item as read (after sustained visibility).
NotificationFeedBloc
BLoC for managing the notification feed lifecycle.
NotificationFeedEvent
Base class for all notification feed events.
NotificationFeedRemoteDataSource
Abstract interface for notification feed remote data source. Handles all interactions with CometChat SDK for notification feed.
NotificationFeedRemoteDataSourceImpl
Implementation of NotificationFeedRemoteDataSource using CometChat SDK.
NotificationFeedRepository
Repository interface for notification feed data operations. Defines the contract for notification feed data access.
NotificationFeedRepositoryImpl
Implementation of NotificationFeedRepository. Delegates to the remote data source and wraps results in Result.
NotificationFeedServiceLocator
Service Locator for Notification Feed module. Provides dependency injection for notification feed clean architecture. Follows singleton pattern for consistent dependency resolution.
NotificationFeedState
Immutable state class for the NotificationFeedBloc.
RefreshFeed
Pull-to-refresh the feed.
ReportClicked
Report a feed item as clicked (user tapped card or action).
ReportDelivered
Report a feed item as delivered.
ReportFeedEngagementUseCase
Use case for reporting engagement on a notification feed item.
ReportViewed
Report a feed item as viewed (entered viewport).
SwitchCategory
Switch the active category filter. Pass null for "All" (no category filter).
UpdateUnreadCounts
Update unread counts (triggered by periodic polling).

Enums

NotificationFeedScreenState
Screen state enum for the notification feed.

Exceptions / Errors

NotificationFeedRemoteException
Exception thrown when remote data source operations fail.