GroupChannelDelegate

@objc(SBDGroupChannelDelegate)
public protocol GroupChannelDelegate : BaseChannelDelegate

An object that adopts the GroupChannelDelegate protocol is responsible for receiving the events in the channel.

This protocol deals with the below events.

  • Receives an event when a member read a message in the GroupChannel.
  • Receives an event when a member typed something in the GroupChannel.
  • Receives an event when a new member joined the GroupChannel.
  • Receives an event when a member left from the GroupChannel.
  • Receives an event when a group channel was hidden.
  • A callback when read status updated.

    Declaration

    Swift

    @objc
    optional func channelDidUpdateReadStatus(_ channel: GroupChannel)

    Parameters

    channel

    The group channel where the read status updated.

  • A callback when delivery status updated.

    Since

    3.0.162

    Declaration

    Swift

    @objc
    optional func channelDidUpdateDeliveryStatus(_ channel: GroupChannel)

    Parameters

    channel

    The group channel where the delivery status updated.

  • A callback when user sends typing status.

    Declaration

    Swift

    @objc
    optional func channelDidUpdateTypingStatus(_ channel: GroupChannel)

    Parameters

    channel

    The group channel where the typing status updated.

  • A callback when member count has been changed for broadcast channel

    Since

    3.0.219

    Declaration

    Swift

    @objc
    optional func channelDidChangeMemberCount(_ channels: [GroupChannel])

    Parameters

    channels

    The group channel that member count has been updated

  • A callback when users are invited by inviter.

    Declaration

    Swift

    @objc
    optional func channel(_ channel: GroupChannel, didReceiveInvitation invitees: [User]?, inviter: User?)

    Parameters

    channel

    The group channel where the invitation is occured.

    invitees

    Invitees.

    inviter

    Inviter.

  • A callback when user declined the invitation.

    Declaration

    Swift

    @objc
    optional func channel(_ channel: GroupChannel, didDeclineInvitation invitee: User, inviter: User?)

    Parameters

    channel

    The group channel where the invitation is occured.

    inviter

    Invitee.

    invitee

    Inviter.

  • A callback when new member joined to the group channel.

    Declaration

    Swift

    @objc
    optional func channel(_ channel: GroupChannel, userDidJoin user: User)

    Parameters

    channel

    The group channel.

    user

    The new user joined to the channel.

  • A callback when current member left from the group channel.

    Declaration

    Swift

    @objc
    optional func channel(_ channel: GroupChannel, userDidLeave user: User)

    Parameters

    channel

    The group channel.

    user

    The member left from the channel.

  • A callback when the channel was hidden on the other device or by Platform API.

    Declaration

    Swift

    @objc
    optional func channelWasHidden(_ channel: GroupChannel)

    Parameters

    channel

    The channel that was hidden on the other device or by Platform API.

  • A callback when the poll has been updated.

    Since

    4.1.0

    Declaration

    Swift

    @objc
    optional func channel(_ channel: GroupChannel, didUpdatePoll event: PollUpdateEvent)

    Parameters

    channel

    The channel that has the message thread.

    event

    event object contains updated poll information.

  • A callback when vote has been occurred.

    Since

    4.1.0

    Declaration

    Swift

    @objc
    optional func channel(_ channel: GroupChannel, didVotePoll event: PollVoteEvent)

    Parameters

    channel

    The channel that has the message thread.

    event

    event object that contains voting information.

  • A callback when vote has been deleted.

    Since

    4.1.0

    Declaration

    Swift

    @objc
    optional func channel(_ channel: GroupChannel, pollWasDeleted pollId: Int64)

    Parameters

    channel

    The channel that has the message thread.

    pollId

    just removed poll id

  • A callback when pinned messages are added or deleted.

    Since

    4.2.0

    Declaration

    Swift

    @objc
    optional func channelDidUpdatePinnedMessages(_ channel: GroupChannel)

    Parameters

    channel

    The group channel.