public IEnumerator AttemptDetailView(Action successHandler) { if (ITTDataCache.Instance.HasSessionCredentials) { if (null != successHandler) { successHandler(); } } else if (!ITTDataCache.Instance.HasSessionCredentials) { if (null != CurrentScreen) { IScreenViewBase screen = CurrentScreen as IScreenViewBase; if (null != screen) { StartCoroutine(screen.OnHide()); } } OnboardingViewController.Spawn(successHandler); StartCoroutine(OnboardingView.OnDisplay()); } yield break; }
public IEnumerator AttemptAuthenticatedStateChange(Enum desiredState) { if (ITTDataCache.Instance.HasSessionCredentials) { currentState = desiredState; } else if (!ITTDataCache.Instance.HasSessionCredentials) { bufferedState = desiredState; if (null != CurrentScreen) { IScreenViewBase screen = CurrentScreen as IScreenViewBase; if (null != screen) { StartCoroutine(screen.OnHide()); } } OnboardingViewController.Spawn(EnterBufferedState); StartCoroutine(OnboardingView.OnDisplay()); } yield break; }