getUserInfoByUid abstract method

Future<UserInfo> getUserInfoByUid(
  1. int uid
)

Gets the user information by passing in the user ID.

After a remote user joins the channel, the SDK gets the UID and user account of the remote user, caches them in a mapping table object, and triggers the onUserInfoUpdated callback on the local client. After receiving the callback, you can call this method and passi in the UID.to get the user account of the specified user from the UserInfo object.

  • uid The user ID.

Returns A pointer to the UserInfo instance, if the method call succeeds. If the call fails, returns NULL.

Implementation

Future<UserInfo> getUserInfoByUid(int uid);