ReactionButton

open class ReactionButton : UIButton

A base class for reaction buttons.

  • Undocumented

    Declaration

    Swift

    public typealias Completion<T> = (_ result: Result<(activity: T, button: UIButton), ClientError>) -> Void where T : ActivityProtocol
  • Undocumented

    Declaration

    Swift

    public typealias ErrorCompletion = (_ error: Error?) -> Void
  • Add a reaction to an activity.

    Declaration

    Swift

    open func react<T: ActivityProtocol, U: UserProtocol>(with presenter: ReactionPresenterProtocol,
                                                          activity: T,
                                                          reaction: T.ReactionType?,
                                                          parentReaction: T.ReactionType?,
                                                          kindOf kind: ReactionKind,
                                                          userTypeOf userType: U.Type,
                                                          targetsFeedIds: [FeedId] = [],
                                                          _ completion: @escaping Completion<T>)
        where T.ReactionType == GetStream.Reaction<ReactionExtraData, U>