getEnterErrorCode method

Future<int?> getEnterErrorCode(
  1. String roomId
)

获取进入聊天室失败的错误码 如果是手动登录,在enterChatRoom的回调函数中已有错误码。 如果是断网重连,在自动登录失败时,即监听到在线状态变更为UNLOGIN时,可以采用此接口查看具体自动登录失败的原因。

@param roomId 聊天室ID @return 聊天室断网重连、自动登录失败的错误码

Implementation

Future<int?> getEnterErrorCode(String roomId) async {
  Map map = buildArguments();
  map['roomId'] = roomId;
  return await _methodChannel.invokeMethod('getEnterErrorCode', map);
}