Protocols
The following protocols are available globally.
-
An object that adopts the
BaseChannelDelegateprotocol is responsible for receiving the events in the channel. Delegate methods inBaseChannelDelegateare common for theBaseChannel. Exclusive delegate methods forOpenChannelandGroupChannelcan be found inOpenChannelDelegateandGroupChannelDelegate. You must useOpenChannelDelegateandGroupChannelDelegateinstead of usingBaseChannelDelegateby usingadd(_:identifier:)inSendbirdChat.Warning
If the object that adopts theBaseChannelDelegateprotocol is invalid, the delegate has to be removed by the identifier viaremoveChannelDelegate(forIdentifier:)inSendbirdChat.This protocol deals with the below events.
- Receives a message in the
BaseChannel. - Receives an event when a message is updated in the
BaseChannel. - Receives an event when the property of the
BaseChannelwas changed. - Receives an event when the
BaseChannelwas deleted. - Receives an event when a message in the
BaseChannelwas deleted. - Receives an event when meta data in the
BaseChannelwas changed. - Receives an event when meta counters in the
BaseChannelwere changed. - Receives an event when a group channel was hidden.
- Receives an event when a user was muted or unmuted in the
BaseChannel. - Receives an event when a user was banned or unbanned in the
BaseChannel. - Receives an event when operators are updated.
- Receives an event when a reaction of message in a channel was updated.
Declaration
Swift
public protocol BaseChannelDelegate: AnyObject - Receives a message in the
-
An object that adopts the
GroupChannelDelegateprotocol 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.
Declaration
Swift
public protocol GroupChannelDelegate: BaseChannelDelegate - Receives an event when a member read a message in the
-
An object that adopts the
OpenChannelDelegateprotocol 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.
Declaration
Swift
public protocol OpenChannelDelegate: BaseChannelDelegate - Receives an event when a participant entered the
-
Mappable protocol to initialize sendbird object from a given dictionary.
See moreNote
This is legacy method for objective c and recommend to use Codable protocol for swiftDeclaration
Swift
public protocol Mappable -
Protocol to provide serialization
See moreDeclaration
Swift
public protocol Serializable: AnyObject -
Represents a delegate to receive connection relates events
See moreDeclaration
Swift
public protocol ConnectionDelegate -
Represents a delegate to receive network event
See moreDeclaration
Swift
public protocol NetworkDelegate -
Represents a delegate to receive session relates events
See moreDeclaration
Swift
public protocol SessionDelegate -
Declaration
Swift
public protocol GroupChannelCollectionDelegate: AnyObject -
Declaration
Swift
public protocol MessageCollectionDelegate: AnyObject -
Undocumented
See moreDeclaration
Swift
public protocol SBErrorCode: Error -
See more
Since
4.6.0Declaration
Swift
public protocol FeedChannelDelegate: BaseChannelDelegate -
Declaration
Swift
public protocol NotificationCollectionDelegate: AnyObject -
Undocumented
See moreDeclaration
Swift
public protocol UserListQuery: AnyObject -
Undocumented
See moreDeclaration
Swift
public protocol RestrictedUserListQuery: AnyObject -
Undocumented
See moreDeclaration
Swift
public protocol SSLTrustValidator -
Undocumented
See moreDeclaration
Swift
public protocol WebSocketClient: class -
Undocumented
See moreDeclaration
Swift
public protocol WSStreamDelegate: class -
Undocumented
See moreDeclaration
Swift
public protocol WSStream -
Undocumented
See moreDeclaration
Swift
public protocol WebSocketDelegate: class -
Undocumented
See moreDeclaration
Swift
public protocol WebSocketPongDelegate: class -
Undocumented
See moreDeclaration
Swift
public protocol WebSocketAdvancedDelegate: class -
Represents a delegate to receive user relates events
See moreDeclaration
Swift
public protocol UserEventDelegate: AnyObject
View on GitHub
Install in Dash
Protocols Reference