FlatFeedPresenter
public final class FlatFeedPresenter<T> : PaginatorProtocol where T : ActivityProtocol
A flat feed presenter.
-
A completion block type of feed requests.
Declaration
Swift
public typealias Completion = (_ error: Error?) -> Void -
A flat feed. See
FlatFeed.Declaration
Swift
public let flatFeed: FlatFeed -
A reaction presenter. See
ReactionPresenter.Declaration
Swift
public let reactionPresenter: ReactionPresenter -
An options of the aditional reactions in the feed. See
FeedReactionsOptions.Declaration
Swift
public var includeReactions: FeedReactionsOptions -
Loaded
ActivityPresenteritems of the feed.Declaration
Swift
public private(set) var items: [ActivityPresenter<T>] { get } -
A pagination for the next page of feed activities.
Declaration
Swift
public var next: Pagination -
A subscription presenter. See
SubscriptionPresenter.Declaration
Swift
public let subscriptionPresenter: SubscriptionPresenter<T> -
Reaction types for activities. See
ActivityPresenterReactionTypes.Declaration
Swift
public var reactionTypes: ActivityPresenterReactionTypes -
Undocumented
Declaration
Swift
public init(flatFeed: FlatFeed, reactionTypes: ActivityPresenterReactionTypes = []) -
Resets the items loaded so far.
Declaration
Swift
public func reset() -
Load feed with a pagination. See
Pagination.Declaration
Swift
public func load(_ pagination: Pagination = .none, completion: @escaping Completion)
-
Remove an activity from the feed.
Declaration
Swift
public func remove(activity: Activity, _ completion: @escaping Completion)
-
Follows to a target
FeedId.Declaration
Swift
public func follow(toTarget target: FeedId, activityCopyLimit: Int = 10, _ completion: @escaping Completion) -
Unfollows from a target
FeedId.Declaration
Swift
public func unfollow(fromTarget target: FeedId, keepHistory: Bool = false, _ completion: @escaping Completion)
View on GitHub
FlatFeedPresenter Class Reference