public override void ViewWillDisappear(bool animated)
 {
     base.ViewWillDisappear(animated);
     LogInWithIDPortenBtn.HideSpinner();
     MessagingCenter.Unsubscribe <object>(this, MessagingCenterKeys.KEY_APP_BECAME_ACTIVE);
     MessagingCenter.Unsubscribe <object>(this, MessagingCenterKeys.KEY_APP_RESIGN_ACTIVE);
 }
Beispiel #2
0
 void OnAuthSuccess(object sender, EventArgs e)
 {
     Debug.Print("OnAuthSuccess");
     LogInWithIDPortenBtn.HideSpinner();
     GoToQuestionnairePage();
     _authViewController.DismissViewController(true, null);
 }
 void OnAuthSuccess(object sender, EventArgs e)
 {
     Debug.Print("OnAuthSuccess");
     LogUtils.LogMessage(LogSeverity.INFO, $"Successfully authenticated and verifeid user. Navigating to {nameof(QuestionnaireViewController)}");
     LogInWithIDPortenBtn.HideSpinner();
     GoToQuestionnairePage();
     _authViewController.DismissViewController(true, null);
 }
Beispiel #4
0
        void OnAuthError(object sender, AuthErrorType authErrorType)
        {
            _viewModel.Cleanup();

            Debug.Print("OnAuthError");
            LogInWithIDPortenBtn.HideSpinner();
            Utils.AuthErrorUtils.GoToErrorPageForAuthErrorType(this, authErrorType);
            _authViewController.DismissViewController(true, null);
        }
        void OnAuthError(object sender, AuthErrorType authErrorType)
        {
            _viewModel.Cleanup();

            Debug.Print("OnAuthError");
            LogUtils.LogMessage(LogSeverity.INFO, "Authentication failed.");
            LogInWithIDPortenBtn.HideSpinner();
            Utils.AuthErrorUtils.GoToErrorPageForAuthErrorType(this, authErrorType);
            _authViewController.DismissViewController(true, null);
        }
Beispiel #6
0
        async partial void OnLoginBtnTapped(CustomSubclasses.DefaultBorderButton sender)
        {
            InvokeOnMainThread(() =>
            {
                LogInWithIDPortenBtn.ShowSpinner(View, UIActivityIndicatorViewStyle.White);
            });

            LogUtils.LogMessage(Enums.LogSeverity.INFO, "Startet login with nemid");
            _authViewController = AuthenticationState.Authenticator.GetUI();
            PresentViewController(_authViewController, true, null);
        }
Beispiel #7
0
        public override void ViewWillDisappear(bool animated)
        {
            base.ViewWillDisappear(animated);

            LogInWithIDPortenBtn.HideSpinner();
        }
Beispiel #8
0
        void ReleaseDesignerOutlets()
        {
            if (CloseBtn != null)
            {
                CloseBtn.Dispose();
                CloseBtn = null;
            }

            if (Consent_BeAware_Text != null)
            {
                Consent_BeAware_Text.Dispose();
                Consent_BeAware_Text = null;
            }

            if (Consent_Explanation_Text != null)
            {
                Consent_Explanation_Text.Dispose();
                Consent_Explanation_Text = null;
            }

            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }

            if (HeaderLabel != null)
            {
                HeaderLabel.Dispose();
                HeaderLabel = null;
            }

            if (LogInWithIDPortenBtn != null)
            {
                LogInWithIDPortenBtn.Dispose();
                LogInWithIDPortenBtn = null;
            }

            if (LookUp_Header != null)
            {
                LookUp_Header.Dispose();
                LookUp_Header = null;
            }

            if (LookUp_Text != null)
            {
                LookUp_Text.Dispose();
                LookUp_Text = null;
            }

            if (Notification_Header != null)
            {
                Notification_Header.Dispose();
                Notification_Header = null;
            }

            if (Notification_Text != null)
            {
                Notification_Text.Dispose();
                Notification_Text = null;
            }
        }