Example #1
0
        public override async Task OnNavigatedToAsync(object parameter, NavigationMode mode, IDictionary <string, object> state)
        {
            // Calls methods to initialize the app.
            await this.InitializeStreamingAsync();

            await this.CheckShowConsentAsync();

            DescribeImageCommand.RaiseCanExecuteChanged();
            SwapCameraCommand.RaiseCanExecuteChanged();
            GotoRecognizeTextCommand.RaiseCanExecuteChanged();

            await base.OnNavigatedToAsync(parameter, mode, state);
        }
Example #2
0
        public override async Task OnNavigatedToAsync(object parameter, NavigationMode mode, IDictionary <string, object> state)
        {
            // Calls methods to initialize the app.
            this.LoadServices();
            await this.InitializeStreamingAsync();

            // If not given, asks the user for the consent to use the app.
            if (!Settings.IsConsentGiven)
            {
                await DialogService.ShowAsync(AppResources.ConsentRequiredMessage, AppResources.ConsentRequiredTitle);

                Settings.IsConsentGiven = true;
            }

            DescribeImageCommand.RaiseCanExecuteChanged();
            SwapCameraCommand.RaiseCanExecuteChanged();
            GotoRecognizeTextCommand.RaiseCanExecuteChanged();

            await base.OnNavigatedToAsync(parameter, mode, state);
        }