/ SDKs / iOS
SDKs
Chat SDKs iOS v4
Chat SDKs iOS
Chat SDKs
iOS
Version 4

Event delegate

Copy link

Sendbird's Chat SDK for iOS provides three types of event delegates for client apps: channel delegate, user event delegate, and connection delegate. Through the channel delegate and user event delegate, the Sendbird server notifies client apps in the foreground for events that are happening in relation to channels and users. Through the connection event delegate, the Sendbird server detects changes in the connection status of a client app. When the client app is disconnected from the server, the SDK tries to reconnect to the server and notifies the client app of the result through the connection event delegate.

The Chat SDK communicates with our server through persistent WebSocket connections and multi-thread processing, receiving callbacks of asynchronous channel, user, and connection events through delegates in real-time. This interaction enables you to track the events you desire and implement your own chat features associated with those events.


Functionalities by event delegates

Copy link

The following is a list of event delegate functionalities that our Chat SDK provides.

Managing a channel event delegate

Copy link
FunctionalityDescriptionOpen channelGroup channel

Add or remove a channel event delegate

Adds or removes an event delegate that receives information about events happening in channels from the Sendbird server.

Managing a user event delegate

Copy link
FunctionalityDescriptionOpen channelGroup channel

Add or remove a user event delegate

Adds or removes an event delegate that receives information about events related to users connected to the Sendbird server.

Managing a connection event delegate

Copy link
FunctionalityDescriptionOpen channelGroup channel

Add or remove a connection event delegate

Adds or removes an event delegate that receives information about changes related to the Sendbird server connection status.