EffectSelectView.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // VideoEffectSlider.h
  3. // TXLiteAVDemo
  4. //
  5. // Created by xiang zhang on 2017/11/3.
  6. // Copyright © 2017年 Tencent. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "SDKHeader.h"
  10. @protocol EffectSelectViewDelegate <NSObject>
  11. -(void)onEffectBtnBeginSelect:(UIButton *)btn;
  12. -(void)onEffectBtnEndSelect:(UIButton *)btn;
  13. -(void)onEffectBtnSelected:(UIButton *)btn;
  14. @end
  15. @interface EffectInfo : NSObject
  16. @property(nonatomic,strong) UIImage *icon;
  17. @property(nonatomic,strong) UIImage *selectIcon;
  18. @property(nonatomic,strong) NSMutableArray *animateIcons;
  19. @property(nonatomic,assign) BOOL isSlow;
  20. @property(nonatomic,strong) NSString *name;
  21. @end
  22. @interface EffectSelectView : UIView
  23. @property (nonatomic,weak) id <EffectSelectViewDelegate> delegate;
  24. @property (assign, nonatomic) NSInteger selectedIndex;
  25. /// 抬起手指时是否还原未选中状态
  26. @property (nonatomic) BOOL momentary;
  27. - (void)setEffectList:(NSArray<EffectInfo *> *)effecList;
  28. - (void)setEffectList:(NSArray<EffectInfo *> *)effecList momentary:(BOOL)momentary;
  29. @end