ReCaptchaReciever
Reciever to communicate with the HTTP server with extended resize functions.
Type: Class
Namespace: ReCaptcha.Desktop.UWP.Client
Assembly: ReCaptcha.Desktop.UWP
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)
Parameter | Description |
---|---|
CoreWebView2 coreWebView | The 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)
Parameter | Description |
---|---|
CancellationToken cancellationToken | The token to cancel this action. |