getLoggedInDevicesFromServer method Null safety
- {required String username,
- required String password}
获取账号名下登陆的在线设备列表
当前登录账号和密码 username
/password
.
Implementation
Future<List<EMDeviceInfo>> getLoggedInDevicesFromServer(
{required String username, required String password}) async {
EMLog.v('getLoggedInDevicesFromServer: $username, "******"');
Map req = {'username': username, 'password': password};
Map result = await _channel.invokeMethod(
EMSDKMethod.getLoggedInDevicesFromServer, req);
EMError.hasErrorFromResult(result);
List<EMDeviceInfo> list = [];
result[EMSDKMethod.getLoggedInDevicesFromServer]?.forEach((info) {
list.add(EMDeviceInfo.fromJson(info));
});
return list;
}