//
//  NvCaptureFilterView.h
//  SDKDemo
//
//  Created by ms20180425 on 2018/11/29.
 //
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class NvCaptureFilterView;
@class NvCaptureFilterModel;
@protocol NvCaptureFilterViewDelegate <NSObject>
@optional

/**
 UICollectionView点击回调

 @param view 当前对象
 @param model 当前model对象
 */
- (void)NvCaptureFilterView:(NvCaptureFilterView *)view withModel:(NvCaptureFilterModel *)model;

/**
 滤镜强度调节回调

 @param view 当前对象
 @param slider 当前调节杆
 */
- (void)NvCaptureFilterView:(NvCaptureFilterView *)view sliderValueChanged:(UISlider *)slider;

/**
 更多点击回调

 @param view 当前对象
 @param sender 更多按钮
 */
- (void)NvCaptureFilterView:(NvCaptureFilterView *)view  moreClick:(UIButton *)sender;

@end

@interface NvCaptureFilterView : UIView

@property (nonatomic, weak) id<NvCaptureFilterViewDelegate> delegate;

/**
 配置数据源,并且刷新视图

 @param array 数据源
 */
- (void)configDataSource:(NSMutableArray *)array;

/**
 更新数据源，不刷新视图

 @param array 数据源
 */
- (void)updateDataSource:(NSMutableArray *)array;

/**
 刷新视图
 */
- (void)reloadDataSource;

@end

NS_ASSUME_NONNULL_END
