Files
CustomPlugin/Libs/CredibleAuthSDK.framework/Headers/AFaceDetectManager.h
2023-04-13 17:23:15 +08:00

46 lines
1.0 KiB
Objective-C

//
// AFaceDetectManager.h
// CredibleAuthSDK
//
// Created by Tony on 2021/12/9.
// Copyright © 2021 PublicJoker. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@protocol AFaceDetectDelegate <NSObject>
@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 <AFaceDetectDelegate>)delegate;
/// 活体检测控制器
- (UIViewController *)getDetectVC;
@end
NS_ASSUME_NONNULL_END