getUserInfoByUserAccount abstract method

Future<UserInfo> getUserInfoByUserAccount(
  1. String userAccount
)

Gets user information by User Account.

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 User Account to get the UserInfo object that contains the specified user's UID.

  • userAccount User Account of the user.

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

Implementation

Future<UserInfo> getUserInfoByUserAccount(String userAccount);