code: @Override
      public void onConnect(int rst, HuaweiApiClient client) {
          if (client == null || !ApiClientMgr.INST.isConnect(client)) {
              HMSAgentLog.e("client not connted");
              onSignInResult(rst, null);
              return;
          }
  
          Activity curActivity = ActivityMgr.INST.getLastActivity();
          if (curActivity == null) {
              HMSAgentLog.e("activity is null");
              onSignInResult(HMSAgent.AgentResultCode.NO_ACTIVITY_FOR_USE, null);
              return;
          }
  		
          PendingResult<SignInResult> signInResult = HuaweiId.HuaweiIdApi.signIn(curActivity, client);
          signInResult.setResultCallback(new ResultCallback<SignInResult>() {
              @Override
              public void onResult(SignInResult result) {
                  disposeSignInResult(result);
              }
          });
      }
docs: HuaweiApiClient 连接结果回调
  
  @param rst    结果码
  @param client HuaweiApiClient 实例