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
OpenChannelwas 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
channelsThe 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
channelThe open channel.
userA 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
channelThe open channel.
userA 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
channelThe channel that has the message thread.
eventevent 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
channelThe channel that has the message thread.
eventevent 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
channelThe channel that has the message thread.
pollIdjust removed poll id
-
A callback when pinned messages are added or deleted.
Since
4.20.0Declaration
Swift
optional func channelDidUpdatePinnedMessages(_ channel: OpenChannel)Parameters
channelThe open channel.
View on GitHub
Install in Dash