private async Task AuthenticateAsync(string reason, string cancel = null, string fallback = null, string tooFast = null) { _cancel = swAutoCancel.IsToggled ? new CancellationTokenSource(TimeSpan.FromSeconds(10)) : new CancellationTokenSource(); lblStatus.Text = ""; var dialogConfig = new Plugin.Fingerprint.Abstractions.AuthenticationRequestConfiguration(reason) { // all optional CancelTitle = cancel, FallbackTitle = fallback, AllowAlternativeAuthentication = swAllowAlternative.IsToggled }; // optional //dialogConfig.HelpTexts.MovedTooFast = tooFast; var result = await Plugin.Fingerprint.CrossFingerprint.Current.AuthenticateAsync(dialogConfig, _cancel.Token); await SetResultAsync(result); }
protected abstract Task <FingerprintAuthenticationResult> NativeAuthenticateAsync(AuthenticationRequestConfiguration authRequestConfig, CancellationToken cancellationToken);