// // AFaceDetectManager.h // CredibleAuthSDK // // Created by Tony on 2021/12/9. // Copyright © 2021 PublicJoker. All rights reserved. // #import #import NS_ASSUME_NONNULL_BEGIN @protocol AFaceDetectDelegate @required /// 活检失败回调 /// - Parameters: /// - code: 错误码 /// - message: 错误描述 - (void)onFailed:(int)code withMessage:(NSString *)message; /// 活检成功回调 /// - Parameters: /// - live: 是否活体 /// - imageData: 采集到的图像 /// - faceRect: 人像框 - (void)onCompleted:(BOOL)live withData:(NSData *)imageData rect:(CGRect)faceRect; @end @interface AFaceDetectManager : NSObject /// 单例 + (instancetype)sharedManager; /// 获取授权文件有效期 + (NSString *)getLicExpiration; /// 设置代理,用于处理活体检测结果 /// - Parameter delegate: 代理对象 - (void)setDelegate:(id )delegate; /// 活体检测控制器 - (UIViewController *)getDetectVC; @end NS_ASSUME_NONNULL_END