NotificationService
Access and manage user-visible notifications.
By default, Trixnity manages its own notifications. It can be seen as some sort of notification center, where notifications can be listed, count and dismissed. Usually this would be kept in sync with the platform notifications. There are platforms, that do not support syncing a list of notifications. For this use case, it is possible to enable MatrixClientConfiguration.enableExternalNotifications and get notification updates via getAllUpdates.
Inheritors
Functions
Dismiss all notifications.
Get all notifications.
Get all notification updates. This returns an empty flow, when MatrixClientConfiguration.enableExternalNotifications is not enabled.
Notification by id, or null if not available.
Returns true if the room is considered unread. This does not mean that there is any notification for the room. A room is considered unread, when the last read event is before Room.lastRelevantEventId or MarkedUnreadEventContent is set.
Process possibly pending notifications from sync or push if needed. This may suspend for a long time (e.g., when the network is not available but a sync is needed).