FlatFeedViewController
open class FlatFeedViewController<T: ActivityProtocol>: BaseFlatFeedViewController<T>, UITableViewDelegate
where T.ActorType: UserProtocol & UserNameRepresentable & AvatarRepresentable,
T.ReactionType == GetStream.Reaction<ReactionExtraData, T.ActorType>
A flat feed view controller.
-
A block type for the removing of an action.
Declaration
Swift
public typealias RemoveActivityAction = (_ activity: T) -> Void
-
A banner view to show realtime updates. See
BannerView
.Declaration
Swift
public var bannerView: UIView & BannerViewProtocol
-
A flat feed presenter for the presentation logic.
Declaration
Swift
public var presenter: FlatFeedPresenter<T>?
-
A block for the removing of an action.
Declaration
Swift
public var removeActivityAction: RemoveActivityAction?
-
Undocumented
Declaration
Swift
open override func viewDidLoad()
-
Undocumented
Declaration
Swift
open override func viewWillAppear(_ animated: Bool)
-
Returns the activity presenter by the table section.
Declaration
Swift
public func activityPresenter(in section: Int) -> ActivityPresenter<T>?
-
Declaration
Swift
open override func reloadData()
-
Declaration
Swift
open override func dataLoaded(_ error: Error?)
-
Undocumented
Declaration
Swift
open override func numberOfSections(in tableView: UITableView) -> Int
-
Undocumented
Declaration
Swift
open override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
-
Undocumented
Declaration
Swift
open override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
-
Undocumented
Declaration
Swift
open override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool
-
Undocumented
Declaration
Swift
open override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath)
-
Undocumented
Declaration
Swift
open func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
-
Subscribes for the realtime updates.
Declaration
Swift
open func subscribeForUpdates()
-
Unsubscribes from the realtime updates.
Declaration
Swift
public func unsubscribeFromUpdates()
-
Return a title of new activies for the banner view on updates.
Declaration
Swift
open func subscriptionNewItemsTitle(with count: Int) -> String
-
Return a title of removed activities for the banner view on updates.
Declaration
Swift
open func subscriptionDeletedItemsTitle(with count: Int) -> String