getUserInfoByUid abstract method

Future<UserInfo> getUserInfoByUid(
  1. int uid
)

Gets user information by UID.

After a remote user joins a channel, the SDK retrieves the UID and User Account of the remote user and caches a mapping table of UID and User Account. It then triggers the onUserInfoUpdated callback locally. After receiving this callback, call this method with the UID to get the UserInfo object that contains the specified user's User Account.

  • uid User ID.

Returns The UserInfo object, if the method call succeeds. null, if the method call fails.

Implementation

Future<UserInfo> getUserInfoByUid(int uid);