DTFFaceViewProtocol.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // DTFFaceViewProtocol.h
  3. // BioAuthEngine
  4. //
  5. // Created by mengbingchuan on 2022/8/29.
  6. // Copyright © 2022 DTF. All rights reserved.
  7. //
  8. #import <UIKit/UIkit.h>
  9. #import <AVFoundation/AVFoundation.h>
  10. #import <ToygerService/ToygerFaceFrame.h>
  11. @protocol DTFFaceViewProtocol;
  12. @protocol DTFFaceViewDelegate <NSObject>
  13. - (void)viewExit:(id<DTFFaceViewProtocol>)view;
  14. - (void)playBtn:(UIButton *)btn;
  15. @end
  16. @protocol DTFFaceViewProtocol <NSObject>
  17. @property(nonatomic, weak) id<DTFFaceViewDelegate> delegate;
  18. - (void)setPreviewLayer:(AVCaptureVideoPreviewLayer *)previewLayer;
  19. - (void)setScreenRotation:(BOOL)isRotation;
  20. - (void)setPlayBtnIcon;
  21. - (void)handleFaceStateChange:(ToygerMessage)state
  22. stateTips:(NSString *)tips
  23. actionGuide:(NSString *)guide
  24. progress:(CGFloat)progress;
  25. - (UIView *)view;
  26. @optional
  27. /**
  28. * color 炫彩时,设置View的背景色
  29. */
  30. - (void)setPhotinusColor:(UIColor *)color;
  31. /**
  32. * 设置是否开启适老化
  33. */
  34. - (void)setSuitableType:(BOOL)isSuitable;
  35. /**
  36. * image 模糊化的人脸图,用于做结束时loading
  37. */
  38. - (void)showBlurImage:(UIImage *)image;
  39. @end