public void CancelAuthorization()
        {
            ITask <HuaweiMobileServices.Utils.Void> taskAuthHuaweiId = authService.CancelAuthorization();

            taskAuthHuaweiId.AddOnSuccessListener((result) =>
            {
                Debug.Log("[HMS]: CancelAuthorization onSuccess ");
            }).AddOnFailureListener((exception) =>
            {
                OnSignInFailed?.Invoke(exception);
            });
        }
Exemplo n.º 2
0
        public void CancelAuthorization()
        {
            ITask <HuaweiMobileServices.Utils.Void> taskAuthHuaweiId = authService.CancelAuthorization();

            taskAuthHuaweiId.AddOnSuccessListener((result) =>
            {
                Debug.Log("[HMSAccountManager]: CancelAuthorization onSuccess ");
            }).AddOnFailureListener((exception) =>
            {
                Debug.LogError("[HMSAccountManager]: Cancel Authorization failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
                OnSignInFailed?.Invoke(exception);
            });
        }