Notification list screen
TerraCore v0
Introduction#
NotificationUI provides a built-in screen for showing received notifications of users.
Usage#
- Android
- iOS
For showing notification list, NotificationUI use a fragment, called NotificationListFragment.
To integrate NotificationListFragment with Navigation component, follow the steps below:
Add NotificationListFragment to the app's navigation graph#
Suppose we use a global action to navigate to NotificationListFragment.
Navigate to NotificationListFragment#
Handle events from NotificationListFragment#
Push NotificationsListViewController#
NotificationsListViewController will be pushed to the top of current navigation bar.
Get embedded NotificationsListViewController#
If you wanna get the viewController for presenting or embed into tabBar, just use func getEmbeddedNotificationsListViewController. Then embed it into another host view controller and push/present like normally.