ReCaptchaReciever

Reciever to communicate with the HTTP server with extended resize functions.

Type: Class
Namespace: ReCaptcha.Desktop.WinUI.Client
Assembly: ReCaptcha.Desktop.WinUI

public class ReCaptchaReciever

Constructors

Creates a new ReCaptchaReciever.

public ReCaptchaReciever()

Properties

VerificationRecieved

Fires when verifcation was recieved from the HTTP server.

Type: EventHandler<VerificationRecievedEventArgs>?
Modifier: event

VerificationCancelled

Fires when verifcation was cancelled from the HTTP server.

Type: EventHandler<VerificationCancelledEventArgs>?
Modifier: event

ReCaptchaResized

Fires when Google reCAPTCHA widget gets resized.

Type: EventHandler<ReCaptchaResizedEventArgs>?
Modifier: event

Methods

SetWebView

Set the targeted CoreWebView for the ReCaptchaReciever.

public void SetWebView(
    CoreWebView2 coreWebView)
ParameterDescription
CoreWebView2 coreWebViewThe WebView to hook the web message events.

WaitAsyc

Asynchronously waits until a token was sent by the HTTP server.

Returns: A Google reCAPTCHA token.

public Task<string> WaitAsyc(
    CancellationToken cancellationToken)
ParameterDescription
CancellationToken cancellationTokenThe token to cancel this action.