changeAppId method

Future<bool> changeAppId({
  1. required String newAppId,
})

~english Updates the App Id, which is the unique identifier to access Agora Chat.

You can retrieve the new App Key from Agora Console.

As this key controls all access to Agora Chat for your app, you can only update the key when the current user is logged out.

Param newAppId The App Id. Ensure that you set this parameter.

Throws A description of the exception. See EMError. ~end

~chinese 修改 App Id

@note 只有在未登录状态才能修改 App Id

Param newAppId App Id

Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 EMError。 ~end

Implementation

Future<bool> changeAppId({required String newAppId}) async {
  throw UnimplementedError("not implemented");
}