UGCKitEffectSelectView.h 738 B

1234567891011121314151617181920
  1. // Copyright (c) 2019 Tencent. All rights reserved.
  2. #import <UIKit/UIKit.h>
  3. #import "SDKHeader.h"
  4. #import "UGCKitEffectInfo.h"
  5. @protocol UGCKitEffectSelectViewDelegate <NSObject>
  6. -(void)onEffectBtnBeginSelect:(UIButton *)btn;
  7. -(void)onEffectBtnEndSelect:(UIButton *)btn;
  8. -(void)onEffectBtnSelected:(UIButton *)btn;
  9. @end
  10. @interface UGCKitEffectSelectView : UIView
  11. @property (nonatomic,weak) id <UGCKitEffectSelectViewDelegate> delegate;
  12. @property (assign, nonatomic) NSInteger selectedIndex;
  13. /// 抬起手指时是否还原未选中状态
  14. @property (nonatomic) BOOL momentary;
  15. - (void)setEffectList:(NSArray<UGCKitEffectInfo *> *)effecList;
  16. - (void)setEffectList:(NSArray<UGCKitEffectInfo *> *)effecList momentary:(BOOL)momentary;
  17. @end