123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // CheckBodyManager.h
- // jiaPei
- //
- // Created by 张嵘 on 2021/1/7.
- // Copyright © 2021 JCZ. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- typedef NS_ENUM(NSUInteger, RQCheckBodyType) {
- /// 通用
- RQCheckBodyType_Default = 0,
- /// 莆田实操
- RQCheckBodyType_PTSC = 1,
- };
- NS_ASSUME_NONNULL_BEGIN
- #define RQ_CHECKBODY_MANAGER [CheckBodyManager sharedManager]
- /**
- 活体回调
-
- @param success 是否成功
- @param location 返回图片
- */
- typedef void(^CheckBodyCompletedBlock)(BOOL success, NSDictionary * _Nullable dic);
- @interface CheckBodyManager : NSObject
- @property (nonatomic, readwrite, strong) NSString *actionImageString;
- + (CheckBodyManager *)sharedManager;
- - (void)beginCheckBodyWithCheckNum:(NSInteger)num completeBlock:(CheckBodyCompletedBlock)completeBlock;
- - (void)beginCheckBodyWithCheckNum:(NSInteger)num checkBodyType:(RQCheckBodyType)checkBodyType waterMarkArr:(NSArray * _Nullable )waterMarkArr completeBlock:(CheckBodyCompletedBlock)completeBlock;
- /// 获取活体动作图片base64字符串
- - (NSString *)getActionImageString;
- /// 设置活体动作图片base64字符串
- /// @param actionImageString 活体动作图片base64字符串
- - (void)setActionImageString:(NSString *)actionImageString;
- @end
- NS_ASSUME_NONNULL_END
|