feat: 税务APP的可信插件
This commit is contained in:
45
Libs/CredibleAuthSDK.framework/Headers/AFaceDetectManager.h
Normal file
45
Libs/CredibleAuthSDK.framework/Headers/AFaceDetectManager.h
Normal file
@@ -0,0 +1,45 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user