### CocoaPods Podfile Configuration for NTESVerifyCode Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Add this Ruby code to your Podfile to integrate the NTESVerifyCode SDK via CocoaPods. It specifies the CocoaPods source and provides two version selection options: latest version or a specific version (e.g., '~> 3.5.5'). After saving, run 'pod install' or 'pod install --repo-update' if you haven't updated the repo. ```ruby source 'https://github.com/CocoaPods/Specs.git' // 指定下载源 # 以下两种版本选择方式示例 # 集成最新版SDK: pod 'NTESVerifyCode' # 集成指定SDK,具体版本号可先执行 pod search NTESVerifyCode,根据返回的版本信息自行决定: pod 'NTESVerifyCode', '~> 3.5.5' ``` -------------------------------- ### Get SDK Version Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Returns the current SDK version as an NSString. ```Objective-C NSString *version = [self.manager getSDKVersion]; ``` -------------------------------- ### 自定义loading图片(支持gif、png、jpg等格式) Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 调用 configLoadingImage:gifData: 方法自定义加载图片,支持单张图片或gif数据。 ```APIDOC ## 自定义loading图片(支持gif、png、jpg等格式) ### Description 调用 configLoadingImage:gifData: 方法自定义加载图片,支持单张图片或gif数据。 ### Method N/A (实例方法) ### Endpoint [self.manager configLoadingImage:nil gifData:imageData] ### Parameters #### Parameters - **animationImage** (UIImage) - Optional - 单张图片,gifData传空。 - **gifData** (NSData) - Optional - 图片格式为gif的二进制数据,animationImage为空。 ### Request Example ```objc NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"face" ofType:@"gif"]; NSData *imageData = [NSData dataWithContentsOfFile:bundlePath]; [self.manager configLoadingImage:nil gifData:imageData]; ``` ### Response N/A ``` -------------------------------- ### 自定义loading文案 Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 调用 configLoadingText: 方法自定义加载中的文案。 ```APIDOC ## 自定义loading文案 ### Description 调用 configLoadingText: 方法自定义加载中的文案。 ### Method N/A (实例方法) ### Endpoint [self.manager configLoadingText:@""] ### Parameters #### Parameters - **NSString** (NSString) - Optional - loadingText,加载中的文案,默认值为"安全检测中"。 ### Request Example ```objc [self.manager configLoadingText:@"加载中..."]; ``` ### Response N/A ``` -------------------------------- ### SDK 日志打印 Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 调用 enableLog: 方法开启或关闭 SDK 日志打印。 ```APIDOC ## SDK 日志打印 ### Description 调用 enableLog: 方法开启或关闭 SDK 日志打印。 ### Method N/A (实例方法) ### Endpoint [self.manager enableLog:] ### Parameters #### Parameters - **BOOL** (BOOL) - Optional - 是否开启 SDK 日志打印,YES 表示开启;NO 表示不开启。默认为 NO。 ### Request Example ```objc [self.manager enableLog:YES]; ``` ### Response N/A ``` -------------------------------- ### 获取 NTESVerifyCodeManager 实例化对象 Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 在需要使用 SDK 的文件中引入头文件后,通过 getInstance 方法获取验证码实例化对象。 ```objectivec self.manager = [NTESVerifyCodeManager getInstance]; ``` -------------------------------- ### 验证码 SDK 版本号 Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 调用 getSDKVersion 方法获取当前 SDK 的版本号。 ```APIDOC ## 验证码 SDK 版本号 ### Description 调用 getSDKVersion 方法获取当前 SDK 的版本号。 ### Method N/A (实例方法) ### Endpoint NSString *version = [self.manager getSDKVersion] ### Parameters 无 ### Request Example ```objc NSString *version = [self.manager getSDKVersion]; ``` ### Response #### Success Response - **NSString** - 当前 SDK 的版本号 ``` -------------------------------- ### verifyCodeInitFinish Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Callback method invoked when the verification code component initialization completes successfully. ```APIDOC ## verifyCodeInitFinish ### Description Called when the verification code component initialization is complete. ### Method - (void)verifyCodeInitFinish; ### Parameters None ### Response No return value. ``` -------------------------------- ### 获取 NTESVerifyCodeManager 实例化对象 Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 通过 getInstance 方法获取验证码管理对象的单例实例,用于后续的初始化和展示操作。 ```APIDOC ## [GET] NTESVerifyCodeManager getInstance ### Description 获取验证码管理对象的单例实例。 ### Method GET ### Endpoint NTESVerifyCodeManager getInstance ### Parameters 无 ### Request Example ```objectivec self.manager = [NTESVerifyCodeManager getInstance]; ``` ### Response #### Success Response (200) - **NSObject** - 验证码实例化对象 #### Response Example ```objectivec self.manager = [NTESVerifyCodeManager getInstance]; ``` ``` -------------------------------- ### 初始化验证码(configureVerifyCode:timeout:) Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 配置易盾业务 ID 和超时时间(单位 ms,建议 7-12 秒)。 ```objectivec [self.manager configureVerifyCode:请输入易盾业务ID timeout:超时时间]; ``` -------------------------------- ### SDK 调用示例(Objective-C) Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 展示如何在项目中引入 SDK 头文件、获取验证码管理对象、配置业务 ID 和超时时间,并显示验证码视图。 ```objectivec // 在项目需要使用SDK的文件中引入 #import @property(nonatomic, strong) NTESVerifyCodeManager *manager; /// 获取验证码管理对象 self.manager = [NTESVerifyCodeManager getInstance]; // sdk 调用 self.manager.mode = NTESVerifyCodeNormal; [self.manager configureVerifyCode:请输入易盾业务ID timeout:超时时间]; // 显示验证码 [self.manager openVerifyCodeView:nil]; ``` -------------------------------- ### Configure Loading Image with GIF Data Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Configures a custom loading image, supporting GIF, PNG, JPG formats. Provide either animationImage (single image) or gifData (binary data for GIF). ```Objective-C NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"face" ofType:@"gif"]; NSData *imageData = [NSData dataWithContentsOfFile:bundlePath]; [self.manager configLoadingImage:nil gifData:imageData]; ``` -------------------------------- ### 初始化与定制化 UI 配置(styleConfig) Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 使用 NTESVerifyCodeStyleConfig 进行 UI 定制,并传入 configureVerifyCode:timeout:styleConfig: 方法。 ```objectivec NTESVerifyCodeStyleConfig *styleConfig = [[NTESVerifyCodeStyleConfig alloc] init]; [self.manager configureVerifyCode:请输入易盾业务ID timeout:超时时间 styleConfig:styleConfig]; ``` -------------------------------- ### 弹出验证码 Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 调用 openVerifyCodeView: 方法弹出验证码视图,可指定展示的父视图。 ```APIDOC ## 弹出验证码 ### Description 调用 openVerifyCodeView: 方法弹出验证码视图,可指定展示的父视图。 ### Method N/A (实例方法) ### Endpoint [self.manager openVerifyCodeView:nil] ### Parameters #### Parameters - **UIView** (UIView) - Optional - 在指定的视图上展示验证码视图,如果传递nil,则使用默认值:[[[UIApplication sharedApplication] delegate] window] ### Request Example ```objc [self.manager openVerifyCodeView:nil]; ``` ### Response N/A ``` -------------------------------- ### Enable SDK Logging Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Enables or disables SDK log printing. Pass YES to enable, NO to disable. Default is NO. ```Objective-C [self.manager enableLog:]; ``` -------------------------------- ### verifyCodeInitFailed: Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Callback method invoked when the verification code component initialization fails, providing error information. ```APIDOC ## verifyCodeInitFailed: ### Description Called when the verification code component initialization fails. ### Method - (void)verifyCodeInitFailed:(NSArray *)error; ### Parameters - **error** (NSArray) - Required - Error information array. ``` -------------------------------- ### 弹出验证码、自定义加载页和错误页 Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 调用 openVerifyCodeView:customLoading:customErrorPage: 方法弹出验证码,并支持自定义加载页和错误页。 ```APIDOC ## 弹出验证码、自定义加载页和错误页 ### Description 调用 openVerifyCodeView:customLoading:customErrorPage: 方法弹出验证码,并支持自定义加载页和错误页。 ### Method N/A (实例方法) ### Endpoint [[self.manager openVerifyCodeView:nil customLoading:YES customErrorPage:YES];] ### Parameters #### Parameters - **UIView** (UIView) - Optional - 在指定的视图上展示验证码视图,如果传递nil,则使用默认值:[[[UIApplication sharedApplication] delegate] window] - **customLoading** (BOOL) - Optional - 传YES,自行设置加载页,在 verifyCodeInitFinish 方法里面隐藏加载页。NO,显示易盾加载页。默认NO。 - **customErrorPage** (BOOL) - Optional - 传YES,自行设置错误页,在verifyCodeInitFailed 里显示错误页。NO,显示易盾加载页。默认NO。 ### Request Example ```objc [[self.manager openVerifyCodeView:nil customLoading:YES customErrorPage:YES];]; ``` ### Response N/A ``` -------------------------------- ### 弹出无感知验证码、自定义加载页和错误页 Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 调用 openVerifyCodeView:loadingView:customLoading:customErrorPage: 方法弹出无感知验证码,并支持自定义加载页和错误页。 ```APIDOC ## 弹出无感知验证码、自定义加载页和错误页 ### Description 调用 openVerifyCodeView:loadingView:customLoading:customErrorPage: 方法弹出无感知验证码,并支持自定义加载页和错误页。 ### Method N/A (实例方法) ### Endpoint [[self.manager openVerifyCodeView:nil loadingView:nil customLoading:YES customErrorPage:YES];] ### Parameters #### Parameters - **UIView** (UIView) - Optional - 在指定的视图上展示验证码视图,如果传递nil,则使用默认值:[[[UIApplication sharedApplication] delegate] window] - **loadingView** (UIView) - Optional - 如果是智能无感知验证码,并且是自定义loading页面,loadingView必传。 - **customLoading** (BOOL) - Optional - 传YES,自行设置加载页,在 verifyCodeInitFinish 方法里面隐藏加载页。NO,显示易盾加载页。默认NO。 - **customErrorPage** (BOOL) - Optional - 传YES,自行设置错误页,在verifyCodeInitFailed 里显示错误页。NO,显示易盾加载页。默认NO。 ### Request Example ```objc [[self.manager openVerifyCodeView:nil loadingView:nil customLoading:YES customErrorPage:YES];]; ``` ### Response N/A ``` -------------------------------- ### 初始化与定制化UI配置 Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 使用业务 ID、超时时间和样式配置对象初始化验证码,并支持定制化 UI。 ```APIDOC ## [POST] configureVerifyCode:timeout:styleConfig: ### Description 使用业务 ID、超时时间和样式配置对象初始化验证码,并支持定制化 UI。 ### Method POST ### Endpoint configureVerifyCode:timeout:styleConfig: ### Parameters #### Request Body - **businessId** (NSString) - 必填 - 易盾分配的业务id - **timeout** (NSString) - 必填 - 单位:ms,加载验证码的超时时间。这个时间尽量设置长一些,比如7秒以上(7-12秒) - **styleConfig** (NTESVerifyCodeStyleConfig) - 必填 - 样式配置对象,包含以下可选属性: - **radius** (NSUInteger) - 可选 - 验证码圆角 - **verifyBorderColor** (NSString) - 可选 - 验证码弹框边框颜色,想要去掉的话可取 transparent 或者与背景色同色 - **capBarTextAlign** (enum) - 可选 - NTESCapBarTextAlignLeft 居左显示、NTESCapBarTextAlignRight 居右显示、NTESCapBarTextAlignCenter 居中显示 - **capBarBorderColor** (NSString) - 可选 - 弹框头部下边框颜色,想要去掉的话可取 transparent 或者与背景色同色 #fff - **capBarTextColor** (NSString) - 可选 - 弹框头部标题文字颜色 - **capBarTextSize** (NSUInteger) - 可选 - 弹框头部标题文字字体大小 - **capBarTextWeight** (NSString) - 可选 - 弹框头部标题文字字体体重,可设置粗细,参考:normal、bold、lighter、bolder、100、200、300、400、500、600、700、800、900 - **capBarTitleHeight** (NSUInteger) - 可选 - 弹框头部标题所在容器高度 - **capBodyPadding** (NSUInteger) - 可选 - 验证码弹框 body 部分的内边距,相当于总体设置 capPaddingTop,capPaddingRight,capPaddingBottom,capPaddingLeft - **capPaddingTop** (NSString) - 可选 - 验证码弹框 body 部分的【上】内边距,覆盖 capPadding 对于上内边距的设置,单位px - **capPaddingRight** (NSString) - 可选 - 验证码弹框 body 部分的【右】内边距,覆盖 capPadding 对于右内边距的设置,单位px - **capPaddingBottom** (NSString) - 可选 - 验证码弹框 body 部分的【底】内边距,覆盖 capPadding 对于底内边距的设置,单位px - **capPaddingLeft** (NSString) - 可选 - 验证码弹框 body 部分的【左】内边距,覆盖 capPadding 对于左内边距的设置,单位px - **paddingTop** (NSString) - 可选 - 弹框【上】内边距,实践时候可与 capPaddingTop 配合,单位px - **paddingBottom** (NSString) - 可选 - 弹框【下】内边距,实践时候可与 capPaddingBottom 配合,单位px - **capBorderRadius** (NSUInteger) - 可选 - 验证码弹框body圆角 - **borderColor** (NSString) - 可选 - 滑块的边框颜色 - **background** (NSString) - 可选 - 滑块的背景颜色 - **borderColorMoving** (NSString) - 可选 - 滑块的滑动时边框颜色,滑动类型验证码下有效 - **backgroundMoving** (NSString) - 可选 - 滑块的滑动时背景颜色,滑动类型验证码下有效 - **borderColorSuccess** (NSString) - 可选 - 滑块的成功时边框颜色,此颜色同步了文字成功时文字颜色、滑块背景颜色 - **backgroundSuccess** (NSString) - 可选 - 滑块的成功时背景颜色 - **backgroundError** (NSString) - 可选 - 滑块的失败时背景颜色 - **borderColorError** (NSString) - 可选 - 失败时边框颜色 - **slideBackground** (NSString) - 可选 - 滑块的滑块背景颜色 - **textSize** (NSUInteger) - 可选 - 滑块的内容文本大小 - **textColor** (NSString) - 可选 - 滑块内容文本颜色(滑块滑动前的颜色,失败、成功前的颜色) - **height** (NSUInteger) - 可选 - 滑块的高度 - **borderRadius** (NSUInteger) - 可选 - 滑块的圆角 - **gap** (NSString) - 可选 - 滑块与验证码视图之间的距离,单位px - **slideTip** (NSString) - 可选 - 滑块文案描述。默认:向右拖动滑块填充拼图。 - **executeBorderRadius** (NSUInteger) - 可选 - 组件圆角大小 - **executeBackground** (NSString) - 可选 - 组件背景色 - **executeTop** (NSString) - 可选 - 组件外层容器距离组件顶部距离,单位px - **executeRight** (NSString) - 可选 - 组件外层容器距离组件右侧距离,单位px - **paddingLeft** (NSString) - 可选 - 滑块文字,如果相对于整个 bar 居中提示文字,设为 0 - **loadBackgroundImage** (NSString) - 可选 - 加载中时的背景图片地址,需要填入一个 url - **loadBackgroundColor** (NSString) - 可选 - 加载中时的背景颜色,支持 CSS 所有颜色值 ### Request Example ```objectivec NTESVerifyCodeStyleConfig *styleConfig = [[NTESVerifyCodeStyleConfig alloc] init]; [self.manager configureVerifyCode:请输入易盾业务ID timeout:超时时间 styleConfig:styleConfig]; ``` ### Response #### Success Response (200) 无返回值 #### Response Example 无 ``` -------------------------------- ### Open Verify Code View Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Opens the captcha view using the default window if no view is provided. The parameter is optional; passing nil uses the default window. ```Objective-C [self.manager openVerifyCodeView:nil]; ``` -------------------------------- ### 配置 Other Linker Flags 添加 -ObjC Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 在 Xcode 的 TARGETS -> Build Setting -> Linking -> Other Linker Flags 中添加 -ObjC,这是项目开发配置的必要步骤。 ```text -ObjC ``` -------------------------------- ### 初始化验证码 Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 使用业务 ID 和超时时间初始化验证码配置。 ```APIDOC ## [POST] configureVerifyCode:timeout: ### Description 使用易盾业务 ID 和超时时间初始化验证码配置。 ### Method POST ### Endpoint configureVerifyCode:timeout: ### Parameters #### Request Body - **businessId** (NSString) - 必填 - 易盾分配的业务id - **timeout** (NSString) - 必填 - 单位:ms,加载验证码的超时时间。这个时间尽量设置长一些,比如7秒以上(7-12秒) ### Request Example ```objectivec [self.manager configureVerifyCode:请输入易盾业务ID timeout:超时时间]; ``` ### Response #### Success Response (200) 无返回值 #### Response Example 无 ``` -------------------------------- ### Open Verify Code View with Custom Loading and Error Pages Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Opens the captcha view with custom loading and error pages. Pass YES for customLoading and customErrorPage to use your own pages; otherwise, the default Yidun pages are shown. ```Objective-C [[self.manager openVerifyCodeView:nil customLoading:YES customErrorPage:YES];]; ``` -------------------------------- ### 配置验证码元素 Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 通过 self.manager 点语法配置验证码的显示位置、模式、协议、遮罩样式、降级策略、语言等属性。 ```APIDOC ## 配置验证码元素 ### Description 通过 self.manager 点语法配置验证码的显示位置、模式、协议、遮罩样式、降级策略、语言等属性。 ### Method N/A (属性配置) ### Endpoint self.manager. ### Parameters #### Configuration Properties - **frame** (CGRect) - Optional - 验证码控件显示的位置,默认居中显示,宽度为屏幕宽度的4/5,高度:view宽度/2.0 + 65。 - **mode** (enum) - Optional - 验证码模式:NTESVerifyCodeNormal 传统验证码,NTESVerifyCodeBind 无感知验证码。 - **protocol** (enum) - Optional - 网络协议:NTESVerifyCodeProtocolHttps 或 NTESVerifyCodeProtocolHttp。 - **alpha** (CGFloat) - Optional - 遮罩透明度,范围0~1,默认0.3。 - **color** (UIColor) - Optional - 遮罩颜色,默认黑色。 - **fallBackCount** (NSUInteger) - Optional - 触发降级的错误次数,默认3。 - **openFallBack** (BOOL) - Optional - 是否开启降级方案,默认YES。 - **closeButtonHidden** (BOOL) - Optional - 是否隐藏关闭按钮,默认NO。 - **shouldCloseByTouchBackground** (BOOL) - Optional - 点击背景是否关闭验证码视图,默认YES。 - **slideIconURL** (NSString) - Optional - 滑块图标URL,不传则使用默认。 - **delegate** (id) - Optional - 设置代理。 - **lang** (enum) - Optional - 验证码语言类型。 - **extraData** (NSString) - Optional - 透传业务数据。 - **deviceOrientation** (enum) - Optional - 设备方向设置。 - **mournTheme** (BOOL) - Optional - 是否开启哀悼主题。 - **fontSize** (enum) - Optional - 字体大小。 - **userInterfaceStyle** (enum) - Optional - 明亮或暗黑主题。 - **innerCloseButtonShow** (BOOL) - Optional - 是否显示验证码内关闭按钮,默认NO。 - **ipv6** (BOOL) - Optional - 是否支持ipv6,默认NO。 - **refreshInterval** (NSUInteger) - Optional - 验证失败后停留时间,单位ms。 - **allowUploadSystemInfo** (BOOL) - Optional - 是否允许采集系统信息,默认YES。 - **user** (NSString) - Optional - 用户标识。 - **captchaType** (enum) - Optional - 验证码类型。 ### Request Example ```objc self.manager.mode = NTESVerifyCodeNormal; self.manager.protocol = NTESVerifyCodeProtocolHttps; self.manager.alpha = 0.3; self.manager.color = [UIColor blackColor]; self.manager.fallBackCount = 3; self.manager.openFallBack = YES; self.manager.closeButtonHidden = NO; self.manager.shouldCloseByTouchBackground = YES; self.manager.delegate = self; self.manager.lang = NTESVerifyCodeLangCN; ``` ### Response N/A ``` -------------------------------- ### Configure Loading Text Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Sets the loading text displayed during captcha loading. The default text is '安全检测中'. ```Objective-C [self.manager configLoadingText:@""]; ``` -------------------------------- ### Open Unperceived Verify Code with Custom Loading and Error Pages Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Opens the unperceived captcha view with custom loading and error pages. The loadingView parameter is required when using a custom loading page for unperceived captchas. ```Objective-C [[self.manager openVerifyCodeView:nil loadingView nil customLoading:YES customErrorPage:YES];]; ``` -------------------------------- ### 关闭验证码 Source: https://github.com/yidun/ntesverifycode/blob/master/README.md 调用 closeVerifyCodeView 方法关闭当前显示的验证码视图。 ```APIDOC ## 关闭验证码 ### Description 调用 closeVerifyCodeView 方法关闭当前显示的验证码视图。 ### Method N/A (实例方法) ### Endpoint [self.manager closeVerifyCodeView] ### Parameters 无 ### Request Example ```objc [self.manager closeVerifyCodeView]; ``` ### Response N/A ``` -------------------------------- ### verifyCodeValidateFinish:validate:message: Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Callback method invoked after validation completes, providing the validation result, secondary validation data, and a result description. ```APIDOC ## verifyCodeValidateFinish:validate:message: ### Description Called after validation is completed. ### Method - (void)verifyCodeValidateFinish:(BOOL)result validate:(NSString *_Nullable)validate message:(NSString *_Nullable)message; ### Parameters - **result** (BOOL) - Required - Validation result: YES/NO. - **validate** (NSString * _Nullable) - Required - Secondary validation data; if validation result is false, validate returns empty. - **message** (NSString * _Nullable) - Required - Result description message. ``` -------------------------------- ### verifyCodeCloseWindow: Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Callback method invoked when the verification code window is closed, providing the close type. ```APIDOC ## verifyCodeCloseWindow: ### Description Called when the verification code window is closed. ### Method - (void)verifyCodeCloseWindow:(NTESVerifyCodeClose)close; ### Parameters - **close** (NTESVerifyCodeClose) - Required - The type of close. ``` -------------------------------- ### verifyCodeValidateFinish:validate:message:extraData: Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Callback method invoked after validation completes, providing the validation result, secondary validation data, a result description, and additional extra data. ```APIDOC ## verifyCodeValidateFinish:validate:message:extraData: ### Description Called after validation is completed, with additional extra data. ### Method - (void)verifyCodeValidateFinish:(BOOL)result validate:(NSString *_Nullable)validate message:(NSString *_Nullable)message extraData:(NSDictionary *_Nullable)extraData; ### Parameters - **result** (BOOL) - Required - Validation result: YES/NO. - **validate** (NSString * _Nullable) - Required - Secondary validation data; if validation result is false, validate returns empty. - **message** (NSString * _Nullable) - Required - Result description message. - **extraData** (NSDictionary * _Nullable) - Required - Additional extra information. ### extraData Parameters | key | value type | description | | --- | --- | --- | | captchaType | NSString | Verification code type | | errorValidate | NSString | Reason for user parameter validation failure | ``` -------------------------------- ### Close Verify Code View Source: https://github.com/yidun/ntesverifycode/blob/master/README.md Closes the currently displayed captcha view. ```Objective-C [self.manager closeVerifyCodeView]; ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.