OpenChannelDelegate
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.219Declaration
Swift
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
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
optional func channel(_ channel: OpenChannel, userDidExit user: User)
Parameters
channel
The open channel.
user
A user who exits the channel.
-
A callback when the poll has been updated.
Since
4.5.0Declaration
Swift
optional func channel(_ channel: OpenChannel, 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.5.0Declaration
Swift
optional func channel(_ channel: OpenChannel, 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.5.0Declaration
Swift
optional func channel(_ channel: OpenChannel, 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.20.0Declaration
Swift
optional func channelDidUpdatePinnedMessages(_ channel: OpenChannel)
Parameters
channel
The open channel.