LCCaptchaClient
public class LCCaptchaClient
Undocumented
-
Captcha
See moreDeclaration
Swift
public struct Captcha : Codable
-
Captcha Verification
See moreDeclaration
Swift
public struct Verification : Codable
-
Request a Captcha synchronously.
Declaration
Swift
public static func requestCaptcha( application: LCApplication = LCApplication.default, width: Double? = nil, height: Double? = nil) -> LCGenericResult<Captcha>
Parameters
application
The application.
width
The width of the image.
height
The height of the image.
Return Value
Result.
-
Request a Captcha asynchronously.
Declaration
Swift
@discardableResult public static func requestCaptcha( application: LCApplication = .default, width: Double? = nil, height: Double? = nil, completionQueue: DispatchQueue = .main, completion: @escaping (LCGenericResult<Captcha>) -> Void) -> LCRequest
Parameters
application
The application.
width
The width of the image.
height
The height of the image.
completion
The callback of the result.
Return Value
Request.
-
Verify a Captcha synchronously.
Declaration
Swift
public static func verifyCaptcha( application: LCApplication = LCApplication.default, code: String, captchaToken: String) -> LCGenericResult<Verification>
Parameters
application
The application.
code
The code of the captcha.
captchaToken
The token of the captcha.
Return Value
Result.
-
Verify a Captcha asynchronously.
Declaration
Swift
@discardableResult public static func verifyCaptcha( application: LCApplication = .default, code: String, captchaToken: String, completionQueue: DispatchQueue = .main, completion: @escaping (LCGenericResult<Verification>) -> Void) -> LCRequest
Parameters
application
The application.
code
The code of the captcha.
captchaToken
The token of the captcha.
completion
The callback of the result.
Return Value
Request.