NotificationsPresenter
public final class NotificationsPresenter<T> : PaginatorProtocol where T : ActivityProtocol
A notifications presenter.
-
A completion block.
Declaration
Swift
public typealias Completion = (_ error: Error?) -> Void
-
A notification feed.
Declaration
Swift
public let notificationFeed: NotificationFeed
-
A notification items.
Declaration
Swift
public private(set) var items: [NotificationGroup<T>] { get }
-
A pagination for the next page.
Declaration
Swift
public var next: Pagination
-
A mark option. See
FeedMarkOption
.Declaration
Swift
public var markOption: FeedMarkOption
-
A number of unseen notifications.
Declaration
Swift
public private(set) var unseenCount: Int { get }
-
A number of unread notifications.
Declaration
Swift
public private(set) var unreadCount: Int { get }
-
A subscription presenter. See
SubscriptionPresenter
.Declaration
Swift
public let subscriptionPresenter: SubscriptionPresenter<T>
-
Create an instance of notifications presenter.
Declaration
Swift
public init(_ notificationFeed: NotificationFeed)
-
Resets the notifications loaded so far.
Declaration
Swift
public func reset()
-
Load notifications with a given pagination options.
Declaration
Swift
public func load(_ pagination: Pagination = .none, completion: @escaping Completion)