protected override async Task <FingerprintAuthenticationResult> NativeAuthenticateAsync(AuthenticationRequestConfiguration authRequestConfig, CancellationToken cancellationToken = default(CancellationToken))
        {
            if (authRequestConfig.UseDialog)
            {
                var fragment = CrossFingerprint.CreateDialogFragment();
                return(await fragment.ShowAsync(authRequestConfig, this, cancellationToken));
            }

            return(await AuthenticateNoDialogAsync(new DeafAuthenticationFailedListener(), cancellationToken));
        }
Beispiel #2
0
        public override async Task <SecureFingerprintAuthenticationResult> NativeSecureAuthenticateAsync(AuthenticationRequestConfiguration authRequestConfig, string key, CancellationToken cancellationToken)
        {
            if (authRequestConfig.UseDialog)
            {
                var fragment = CrossFingerprint.CreateDialogFragment();
                return(await fragment.ShowSecureAsync(authRequestConfig, key, this, cancellationToken));
            }

            return(await AuthenticateSecureNoDialogAsync(new DeafAuthenticationFailedListener(), key, cancellationToken));
        }