MHBeautyView.h 781 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //MHBeautyView
  2. //美颜UI
  3. #import <UIKit/UIKit.h>
  4. NS_ASSUME_NONNULL_BEGIN
  5. @protocol MHBeautyViewDelegate <NSObject>
  6. @required
  7. /**
  8. 美颜
  9. @param beautyType 美颜类型,详情见MHFiltersContants.h
  10. @param value 美颜参数
  11. */
  12. - (void)handleBeautyEffects:(NSInteger)beautyType sliderValue:(NSInteger)value name:(NSString*)name;
  13. @end
  14. @interface MHBeautyView : UIView
  15. @property (nonatomic, weak) id<MHBeautyViewDelegate> delegate;
  16. /**
  17. 选中一键美颜功能的后,取消美颜选中状态
  18. @param type 选中的美颜类型
  19. */
  20. - (void)cancelSelectedBeautyType:(NSInteger)type;
  21. - (void)clearAllBeautyEffects;
  22. /**
  23. 获取当前选中的类型索引
  24. */
  25. - (NSInteger)currentIndex;
  26. - (void)configureBeautyData:(NSMutableArray *)beautyArr;
  27. @end
  28. NS_ASSUME_NONNULL_END