ToolsView.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // ToolsView.h
  3. // BuguLive
  4. //
  5. // Created by yy on 16/12/13.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "ToolsCollectionViewCell.h"
  10. #import "PluginToolsModel.h"
  11. @class ToolsView;
  12. @protocol ToolsViewDelegate <NSObject>
  13. @required
  14. - (void)selectToolsItemWith:(ToolsView *)toolsView selectIndex:(NSInteger)index isSelected:(BOOL)isSelected;
  15. @end
  16. @protocol ToolsViewDelegate2 <NSObject>
  17. @required
  18. //关闭插件中心
  19. - (void)closeSelfView:(ToolsView *)toolsView;
  20. @end
  21. @interface ToolsView : UIView<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>
  22. {
  23. GlobalVariables *_BuguLive;
  24. }
  25. @property (nonatomic, weak) id<ToolsViewDelegate> toSDKdelegate;
  26. @property (nonatomic, weak) id<ToolsViewDelegate2> toPCVdelegate;
  27. @property (nonatomic, strong) UICollectionView *toolsCollectionView;
  28. @property (nonatomic, strong) NSMutableArray *toolsSelArray; // 选中工具图片列表
  29. @property (nonatomic, strong) NSMutableArray *toolsUnselArray; // 未选中工具图片列表
  30. @property (nonatomic, strong) NSMutableArray *toolsNameArray; // 工具名称列表
  31. @property (nonatomic, strong) NSMutableArray *cellArray; // 保存cell的数组
  32. @property (nonatomic, assign) BOOL isRearCamera; // 是否后置摄像头
  33. @property (nonatomic, assign) BOOL isClick; // 可否点击闪光灯
  34. //@property (nonatomic, assign) BOOL isOpenMirror; // 是否开启镜像
  35. @end