MHBeautyFaceView.h 727 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // MHBeautyFaceView.h
  3. //美型UI
  4. #import <UIKit/UIKit.h>
  5. NS_ASSUME_NONNULL_BEGIN
  6. @protocol MHBeautyFaceViewDelegate <NSObject>
  7. @required
  8. - (void)handleFaceEffects:(NSInteger)beautyType sliderValue:(NSInteger)value name:(NSString*)name;
  9. @end
  10. @interface MHBeautyFaceView : UIView
  11. @property (nonatomic, weak) id<MHBeautyFaceViewDelegate> delegate;
  12. //根据版本类型设置美型UI界面
  13. - (void)configureFaceData:(NSMutableArray *)facesArr;
  14. /**
  15. 选中一键美颜功能的后,取消美型选中状态
  16. @param type 选中的美型类型
  17. */
  18. - (void)cancelSelectedFaceType:(NSInteger)type;
  19. - (void)clearAllFaceEffects;
  20. /**
  21. 获取当前选中的类型索引
  22. */
  23. - (NSInteger)currentIndex;
  24. @end
  25. NS_ASSUME_NONNULL_END