AVCaptcha Class Reference

Inherits from NSObject
Declared in AVCaptcha.h

+ requestCaptchaWithOptions:callback:

Request a captcha.

+ (void)requestCaptchaWithOptions:(nullable AVCaptchaRequestOptions *)options callback:(AVCaptchaRequestCallback)callback

Parameters

options

The options that configure the captcha.

callback

The callback of request.

Discussion

Request a captcha.

This method get a captcha digest from server. You can use the captcha digest to verify a captcha code that recognized by user.

Declared In

AVCaptcha.h

+ verifyCaptchaCode:forCaptchaDigest:callback:

Verify a captcha code for captcha digest that you’ve requested before.

+ (void)verifyCaptchaCode:(NSString *)captchaCode forCaptchaDigest:(AVCaptchaDigest *)captchaDigest callback:(AVCaptchaVerificationCallback)callback

Parameters

captchaCode

The symbols user recognized from captcha image.

captchaDigest

The captcha digest that you’ve requested before.

callback

The callback of request.

Discussion

Verify a captcha code for captcha digest that you’ve requested before.

Declared In

AVCaptcha.h