Chat / Flutter
Current version: v3
Chat Flutter v3
Chat Flutter
Chat
Flutter
Home
/
Chat
/
Flutter
/
User

Retrieve the latest information on participants

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

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.