IReCaptchaClient
Client which handles all ReCaptcha verifications.
Type: Interface
Namespace: ReCaptcha.Desktop.WinUI.Client.Interfaces
Assembly: ReCaptcha.Desktop.WinUI
public interface IReCaptchaClient
Properties
Configuration
The configuration used for this client.
Type: ReCaptchaConfig
Modifier: none
WindowConfiguration
The window configuration used for this client.
Type: WindowConfig
Modifier: none
VerificationRecieved
Fires when verifcation was recieved.
Type: EventHandler<VerificationRecievedEventArgs>?
Modifier: event
VerificationCancelled
Fires when verifcation was cancelled.
Type: EventHandler<VerificationCancelledEventArgs>?
Modifier: event
ReCaptchaResized
Fires when Google reCAPTCHA widget gets resized.
Type: EventHandler<ReCaptchaResizedEventArgs>?
Modifier: event
Methods
VerifyAsync
Sets up the reCAPTCHA site and opens a new window for the user to verify.
Returns: A Google reCAPTCHA token.
Task<string> VerifyAsync(
CancellationToken cancellationToken = default!)
Parameter | Description |
---|---|
CancellationToken cancellationToken | The token to cancel this action. |