MHBeautyAssembleView.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // MHBeautyAssembleView.h
  3. #import <UIKit/UIKit.h>
  4. @class MHBeautiesModel;
  5. NS_ASSUME_NONNULL_BEGIN
  6. @protocol MHBeautyAssembleViewDelegate <NSObject>
  7. @required
  8. /**
  9. 美颜-腾讯直播SDK专用
  10. @param beauty 磨皮 0-9,数值越大,效果越明显
  11. @param white 美白 0-9,数值越大,效果越明显
  12. @param ruddiness 红润 0-9,数值越大,效果越明显
  13. */
  14. - (void)beautyLevel:(NSInteger)beauty whitenessLevel:(NSInteger)white ruddinessLevel:(NSInteger)ruddiness brightnessLevel:(NSInteger)brightness;
  15. /// 美颜
  16. /// @param type 美颜类型:美白,磨皮,红润
  17. /// @param beautyLevel 美颜参数,0-1,数值越大,效果越明显
  18. - (void)handleBeautyWithType:(NSInteger)type level:(CGFloat)beautyLevel;
  19. /**
  20. 一键美颜
  21. @param model 一键美颜模型
  22. */
  23. - (void)handleQuickBeautyValue:(MHBeautiesModel *)model;
  24. - (void)handleQuickBeautyWithSliderValue:(NSInteger)value quickBeautyModel:(MHBeautiesModel *)model;
  25. /**
  26. 美型
  27. @param type 美型类型
  28. @param value 数值
  29. */
  30. - (void)handleFaceBeautyWithType:(NSInteger)type sliderValue:(NSInteger)value;
  31. /**
  32. 滤镜
  33. @param filter 滤镜
  34. */
  35. - (void)handleFiltersEffectWithType:(NSInteger)filter withFilterName:(NSString *)filterName;
  36. ///修改MHUI照相按钮
  37. - (void)takePhoto;
  38. ///修改MHUI 底部收起按钮
  39. - (void)clickPackUp;
  40. @end
  41. @interface MHBeautyAssembleView : UIView
  42. @property (nonatomic, weak) id<MHBeautyAssembleViewDelegate> delegate;
  43. @property (nonatomic, assign)BOOL isTXSDK;//是否是腾讯SDK
  44. @property(nonatomic,strong)NSMutableArray *facesArr;//美型数据
  45. @property(nonatomic,strong)NSMutableArray *beautyArr;//美颜数据
  46. - (void)configureUI;
  47. - (void)configureSlider;
  48. @end
  49. NS_ASSUME_NONNULL_END