Пример #1
0
        private async Task AuthCommandExecute()
        {
            if (Device.RuntimePlatform == Device.iOS)
            {
                var authRs = await _localAuthService.AuthenticateAsync("Test for touch id");

                if (authRs.IsSuccess)
                {
                    await GoToMainPageAsync();
                }
                else
                {
                    await _pageDialogService.DisplayAlertAsync("Error", authRs.ErrorMessage, "Ok");
                }
            }
            else
            {
                await _pageDialogService.DisplayAlertAsync("Error", $"Oops, not implemented on {Device.RuntimePlatform}", "Ok");
            }
        }