FUAPIDemoBar.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // FUDemoBar.h
  3. // FUAPIDemoBar
  4. //
  5. // Created by L on 2018/6/26.
  6. // Copyright © 2018年 L. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "FUBeautyParam.h"
  10. @protocol FUAPIDemoBarDelegate <NSObject>
  11. // 滤镜程度改变
  12. - (void)filterValueChange:(FUBeautyParam *)param;
  13. - (void)beautyParamValueChange:(FUBeautyParam *)param;
  14. // 显示提示语
  15. - (void)filterShowMessage:(NSString *)message ;
  16. // 显示上半部分View
  17. -(void)showTopView:(BOOL)shown;
  18. -(void)restDefaultValue:(int)type;
  19. @end
  20. @interface FUAPIDemoBar : UIView
  21. @property (nonatomic, assign) id<FUAPIDemoBarDelegate>mDelegate ;
  22. // 上半部分
  23. @property (weak, nonatomic) IBOutlet UIView *topView;
  24. @property (weak, nonatomic) IBOutlet UIView *bottomView;
  25. @property (nonatomic, assign) int selBottomIndex;
  26. -(void)reloadSkinView:(NSArray<FUBeautyParam *> *)skinParams;
  27. -(void)reloadShapView:(NSArray<FUBeautyParam *> *)shapParams;
  28. -(void)reloadFilterView:(NSArray<FUBeautyParam *> *)filterParams;
  29. /* 风格 */
  30. -(void)reloadStyleView:(NSArray<FUBeautyParam *> *)styleParams defaultStyle:(FUBeautyParam *)selStyle;
  31. // 关闭上半部分
  32. -(void)hiddenTopViewWithAnimation:(BOOL)animation;
  33. // 上半部是否显示
  34. @property (nonatomic, assign) BOOL isTopViewShow ;
  35. -(void)setDefaultFilter:(FUBeautyParam *)filter;
  36. -(void)setDefaultStyle:(int)index;
  37. - (void)restBeautyDefaultValue;
  38. @end