ReactionPaginator
public final class ReactionPaginator<T, U> : PaginatorProtocol where T : Decodable, T : Encodable, U : UserProtocol
A reaction paginator.
-
A completion block.
Declaration
Swift
public typealias Completion = (_ error: Error?) -> Void
-
An activity id of reactions.
Declaration
Swift
public let activityId: String
-
A reaction kind.
Declaration
Swift
public let reactionKind: ReactionKind
-
Reaction items.
Declaration
Swift
public private(set) var items: [GetStream.Reaction<T, U>] { get }
-
A pagination for the next page.
Declaration
Swift
public var next: Pagination
-
Create a reaction paginator for a given activity id and reaction kind.
Declaration
Swift
public init(activityId: String, reactionKind: ReactionKind)
-
Resets the reactions loaded so far.
Declaration
Swift
public func reset()
-
Load reactions with a given pagination options.
Declaration
Swift
public func load(_ pagination: Pagination = .none, completion: @escaping Completion)