PFAPIDemoBar.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // PFDemoBar.h
  3. //
  4. // Created by mumu on 2021/9/6.
  5. //
  6. #import <UIKit/UIKit.h>
  7. #import "PFBeautyParam.h"
  8. @protocol PFAPIDemoBarDelegate <NSObject>
  9. // 滤镜程度改变
  10. - (void)filterValueChange:(PFBeautyParam *)param;
  11. -(void)bottomDidChange:(int)index;
  12. // 显示上半部分View
  13. -(void)showTopView:(BOOL)shown;
  14. // 开启关闭按钮
  15. - (void)switchRenderState:(BOOL)state;
  16. - (void)comparisonButtonDidClick:(BOOL)state;
  17. @end
  18. @interface PFAPIDemoBar : UIView
  19. /* 滤镜参数 */
  20. @property (nonatomic, strong) NSArray<PFBeautyParam *> *filtersParams;
  21. /* 美肤参数 */
  22. @property (nonatomic, strong) NSArray<PFBeautyParam *> *skinParams;
  23. /* 美型参数 */
  24. @property (nonatomic, strong) NSArray<PFBeautyParam *> *shapeParams;
  25. @property (nonatomic, strong) NSArray<PFBeautyParam *> *faceTypeParams;
  26. @property (nonatomic, strong) NSArray<PFBeautyParam *> *makeupParams;
  27. @property (nonatomic, strong) NSArray<PFBeautyParam *> *stickersParams;
  28. @property (nonatomic, assign) id<PFAPIDemoBarDelegate>mDelegate ;
  29. @property (nonatomic, assign) int oneKeyType;
  30. @property (nonatomic, assign) int filterIndex;
  31. // 关闭上半部分
  32. -(void)hiddenTopViewWithAnimation:(BOOL)animation;
  33. // 上半部是否显示
  34. @property (nonatomic, assign) BOOL isTopViewShow ;
  35. -(void)setDefaultFilter:(PFBeautyParam *)filter;
  36. -(void)updateDemoBar;
  37. @end