洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.2 KiB

8 months ago
  1. //
  2. // AFECircularView.h
  3. // BioAuthEngine
  4. //
  5. // Created by yukun.tyk on 01/11/2016.
  6. // Copyright © 2016 DTF. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <BioAuthEngine/AFEScanViewDelegate.h>
  10. #import "DTFTextLayer.h"
  11. #import "AFECircleProgressBar.h"
  12. #import "DTFUIElementManager.h"
  13. #import "DTFUploadWaveLayer.h"
  14. @class AFEStatusBar, AFECircleProgressBar, APBBlurView;
  15. @protocol AFECircularViewProtocol <NSObject>
  16. - (void)onStopScan;
  17. @optional
  18. - (void)playBtn:(UIButton *)btn;
  19. @end
  20. @interface AFECircularView : UIView<AFEScanViewProtocol>
  21. @property (strong, nonatomic) AFEStatusBar *statusBar;
  22. @property (nonatomic, strong) CALayer *compactLayer;
  23. @property (nonatomic, strong) CALayer *cameraLayer;
  24. @property (nonatomic, assign) float cameraStartY;
  25. @property (nonatomic, assign) float cameraEndY;
  26. @property (nonatomic, assign) BOOL isWish;
  27. @property (nonatomic, strong) DTFTextLayer *bottomTipLayer;
  28. @property (nonatomic, strong) DTFTextLayer *tipLayer;
  29. @property (nonatomic, strong) CALayer *tipBackgroundLayer;
  30. @property (nonatomic, strong) DTFTextLayer *powerByLayer;
  31. @property (nonatomic, strong) AFECircleProgressBar *progressBar;
  32. @property (nonatomic, strong) DTFUploadWaveLayer *waveLayer;
  33. @property (nonatomic, strong) DTFTextLayer * stopScanTipLayer;
  34. @property (nonatomic, weak) id<AFECircularViewProtocol> aFECirViewDelegate;
  35. @property (nonatomic, strong) UIButton * stopScanTipButton;
  36. @property (nonatomic, assign) double widthCoefficient;
  37. @property (nonatomic, copy) NSDictionary *bottomTipAttrDict;
  38. @property (nonatomic, copy) NSDictionary *tipAttrDict;
  39. - (void)showPercent:(CGFloat)stage;
  40. - (void)showtip:(NSString *)tip;
  41. - (void)showBottomTip:(NSString *)bottomTip;
  42. - (void)addCameraPreviewLayer:(CALayer *)cameraPreviewLayer;
  43. - (void)powerByLayerHidden:(BOOL)hidden;
  44. - (void)setBottomTipHidden:(BOOL)hidden;
  45. - (void)setScreenRotation:(BOOL)isRotation;
  46. - (void)setPlayBtnIcon:(NSString *)platformInfo;
  47. - (void)setStopScanButtonHidden:(BOOL)hidden;
  48. - (void)setMaskImage:(UIImage *)bestImage;
  49. - (void)startWave;
  50. - (void)stopWave;
  51. - (void)setAFECirViewDelegate:(id<AFECircularViewProtocol>)delegate;
  52. - (void)showBrandTip:(NSString *)brandTip;
  53. - (void)showStopScanTip:(NSString *)stopScanTip;
  54. - (void)hideViewList;
  55. - (void)showViewList;
  56. - (void)_updateView;
  57. @end