Chat / iOS
Chat iOS v4
Chat iOS
Chat
iOS
Home
/
Chat
/
iOS
/
User
This is the new Docs for Chat SDK v4 for iOS. To see the previous Docs, click here.

Retrieve the latest information on participants

To retrieve the latest information on each online participant in an open channel, you need to create a new query instance using the createParticipantListQuery(paramsBuilder:) method, then call the loadNextPage(completionHandler:) method until you retrieve the latest information.

You can also retrieve the latest information on participants at the application level. Similar to retrieving a list of users, you need to create a new query instance using createApplicationUserListQuery(paramsBuilder:), then call loadNextPage(completionHandler:) until you retrieve the latest.

You can get the participant's current connection status by checking their connectionStatus in the returned list. Acceptable values of the connectionStatus property are offline and online.

Connection status values

ValueDescription

offline

The user isn't connected to the Sendbird server.

online

The user is connected to the Sendbird server.

Note: If you need to keep track of a participant's connection status in real-time, we recommend that you call the loadNextPage(completionHandler:) method of the ApplicationUserListQuery instance in intervals of one minute or more after specifying the value of userIdsFilter.