CheckBodyManager.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // CheckBodyManager.h
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2021/1/7.
  6. // Copyright © 2021 JCZ. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef NS_ENUM(NSUInteger, RQCheckBodyType) {
  10. /// 通用
  11. RQCheckBodyType_Default = 0,
  12. /// 莆田实操
  13. RQCheckBodyType_PTSC = 1,
  14. };
  15. NS_ASSUME_NONNULL_BEGIN
  16. #define RQ_CHECKBODY_MANAGER [CheckBodyManager sharedManager]
  17. /**
  18. 活体回调
  19. @param success 是否成功
  20. @param location 返回图片
  21. */
  22. typedef void(^CheckBodyCompletedBlock)(BOOL success, NSDictionary * _Nullable dic);
  23. @interface CheckBodyManager : NSObject
  24. @property (nonatomic, readwrite, strong) NSString *actionImageString;
  25. + (CheckBodyManager *)sharedManager;
  26. - (void)beginCheckBodyWithCheckNum:(NSInteger)num completeBlock:(CheckBodyCompletedBlock)completeBlock;
  27. - (void)beginCheckBodyWithCheckNum:(NSInteger)num checkBodyType:(RQCheckBodyType)checkBodyType waterMarkArr:(NSArray * _Nullable )waterMarkArr completeBlock:(CheckBodyCompletedBlock)completeBlock;
  28. /// 获取活体动作图片base64字符串
  29. - (NSString *)getActionImageString;
  30. /// 设置活体动作图片base64字符串
  31. /// @param actionImageString 活体动作图片base64字符串
  32. - (void)setActionImageString:(NSString *)actionImageString;
  33. @end
  34. NS_ASSUME_NONNULL_END