getSelfIdsOnOtherPlatform method

Future<List<String>?> getSelfIdsOnOtherPlatform()

从服务器获取登录用户在其他设备上登录的ID

Implementation

Future<List<String>?> getSelfIdsOnOtherPlatform() async {
  Map result =
      await _channel.invokeMethod(EMSDKMethod.getSelfIdsOnOtherPlatform);
  EMError.hasErrorFromResult(result);
  List<String>? devices =
      result[EMSDKMethod.getSelfIdsOnOtherPlatform]?.cast<String>();
  return devices;
}