/ SDKs / Flutter
SDKs
Chat SDKs Flutter v3
Chat SDKs Flutter
Chat SDKs
Flutter
Version 3
Sendbird Chat SDK v3 for Flutter is no longer supported as a new version is released. Check out our latest Chat SDK v4

Retrieve the latest information on participants

Copy link

To retrieve the latest and updated information on each online participant in an open channel, you need to create a new query instance using the UserListQuery instance, then call the loadNext() method consecutively to 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 ApplicationUserListQuery then call loadNext() until you retrieve the latest information.

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

Connection status values

Copy link
ValueDescription

UserConnectionStatus.offline

The user isn't connected to the Sendbird server.

UserConnectionStatus.online

The user is connected to the Sendbird server.

Note: If you need to keep track of the connection status of some users in real time, we recommend that you periodically call the loadNext() method of a ApplicationUserListQuery instance after specifying its userIds filter, perhaps in intervals of one minute or more.