private async Task HandleNextStepAsync()
        {
            await ShowNotificationIfNecessary(ActivityType.Connectivity, ShowBluetoothNotification);

            if (SelectedActivityIndex == OnBoardingActivities.Count)
            {
                Xamarin.Essentials.Preferences.Set("OnBoarded", true);
                await _mainRoute.ExecuteAsync(_navigationService);
            }
        }
예제 #2
0
 private Task ShowFirstPageAsync(INavigationService navigationService)
 {
     if (_authenticationInfoService.IsAuthenticated())
     {
         if (Xamarin.Essentials.Preferences.Get("OnBoarded", false))
         {
             return(_mainRoute.ExecuteAsync(navigationService));
         }
         else
         {
             return(_onboardingRoute.ExecuteAsync(navigationService));
         }
     }
     else
     {
         return(_createProfileRoute.ExecuteAsync(navigationService));
     }
 }