QiscusCoreDelegate

public protocol QiscusCoreDelegate

Undocumented

  • new comment is comming

    Declaration

    Swift

    func onRoom(_ room: RoomModel, gotNewComment comment: CommentModel)

    Parameters

    room

    room where event happen

    comment

    new comment object

  • comment status change

    Declaration

    Swift

    func onRoom(_ room: RoomModel, didChangeComment comment: CommentModel, changeStatus status: CommentStatus)

    Parameters

    room

    room where event happen

    comment

    new comment where status is change, you can compare from local data

    status

    comment status, exp: deliverd, receipt, or read. special case for read, for example we have message 1,2,3,4,5 then you got status change for message 5 it’s mean message 1-4 has been read

  • User Typing Indicator

    Declaration

    Swift

    func onRoom(_ room: RoomModel, thisParticipant user: MemberModel, isTyping typing: Bool)

    Parameters

    room

    room where event happen

    user

    object user or participant

    typing

    true if user start typing and false when finish typing. typing time avarange is 5-10s, we assume user typing is finish after that

  • User Online status

    Declaration

    Swift

    func onChange(user: MemberModel, isOnline online: Bool, at time: Date)

    Parameters

    user

    object member

    status

    true if user login

    time

    millisecond UTC

  • Undocumented

    Declaration

    Swift

    func gotNew(room: RoomModel)
  • Undocumented

    Declaration

    Swift

    func remove(room: RoomModel)