Browse SDKs · React Native
Platform
SDKsReact Native

Get subscribed user status

Retrieve current presence states for all previously subscribed users with the OpenIM React Native SDK.

Copy

Retrieve the latest online presence states for all users currently subscribed by this account:

const states = await OpenIMSDK.getSubscribeUsersStatus();

Return value

Resolves to an array of UserOnlineState[]. Update local presence indicators keyed by userID. If target users have not yet been subscribed, follow Subscribe to user online status.