code: private void onConnectEnd(final int rstCode) {
          HMSAgentLog.d("connect end:" + rstCode);
  
          synchronized (CALLBACK_LOCK) {
              // 回调各个回调接口连接结束
              for (IClientConnectCallback callback : connCallbacks) {
                  aSysnCallback(rstCode, callback);
              }
              connCallbacks.clear();
  
              // 恢复默认不显示
              allowResolveConnectError = false;
          }
  
          synchronized (STATIC_CALLBACK_LOCK) {
              // 回调各个回调接口连接结束
              for (IClientConnectCallback callback : staticCallbacks) {
                  aSysnCallback(rstCode, callback);
              }
              staticCallbacks.clear();
          }
      }
docs: Huawei Api Client 连接结束方法
  @param rstCode client 连接结果码