OpenChannelDelegate

@objc(SBDOpenChannelDelegate)
public protocol OpenChannelDelegate : BaseChannelDelegate

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

This protocol deals with the below events.

  • Receives an event when a participant entered the OpenChannel.
  • Receives an event when a participant exited the OpenChannel.
  • Receives an event when the OpenChannel was frozen or unfrozen.
  • A callback when participant count has been changed for open channel

    Since

    3.0.219

    Declaration

    Swift

    @objc
    optional func channelDidChangeParticipantCount(_ channels: [OpenChannel])

    Parameters

    channels

    The open channel that member count has been updated

  • A callback when a user enter an open channel.

    Declaration

    Swift

    @objc
    optional func channel(_ channel: OpenChannel, userDidEnter user: User)

    Parameters

    channel

    The open channel.

    user

    A user who enters the channel

  • A callback when a user exit an open channel.

    Declaration

    Swift

    @objc
    optional func channel(_ channel: OpenChannel, userDidExit user: User)

    Parameters

    channel

    The open channel.

    user

    A user who exits the channel.