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
applicationThe application.
widthThe width of the image.
heightThe 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) -> LCRequestParameters
applicationThe application.
widthThe width of the image.
heightThe height of the image.
completionThe 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
applicationThe application.
codeThe code of the captcha.
captchaTokenThe 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) -> LCRequestParameters
applicationThe application.
codeThe code of the captcha.
captchaTokenThe token of the captcha.
completionThe callback of the result.
Return Value
Request.
View on GitHub
Install in Dash
LCCaptchaClient Class Reference