YBIBToolViewHandler.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // YBIBToolViewHandler.h
  3. // YBImageBrowserDemo
  4. //
  5. // Created by 波儿菜 on 2019/7/7.
  6. // Copyright © 2019 杨波. All rights reserved.
  7. //
  8. #import "YBIBSheetView.h"
  9. #import "YBIBTopView.h"
  10. #import "YBIBDataProtocol.h"
  11. #import "YBIBOrientationReceiveProtocol.h"
  12. #import "YBIBOperateBrowserProtocol.h"
  13. NS_ASSUME_NONNULL_BEGIN
  14. @protocol YBIBToolViewHandler <YBIBGetBaseInfoProtocol, YBIBOperateBrowserProtocol, YBIBOrientationReceiveProtocol>
  15. @required
  16. /**
  17. 容器视图准备好了,可进行子视图的添加和布局
  18. */
  19. - (void)yb_containerViewIsReadied;
  20. /**
  21. 隐藏视图
  22. @param hide 是否隐藏
  23. */
  24. - (void)yb_hide:(BOOL)hide;
  25. @optional
  26. /// 当前数据
  27. @property (nonatomic, copy) id<YBIBDataProtocol>(^yb_currentData)(void);
  28. /**
  29. 页码变化了
  30. */
  31. - (void)yb_pageChanged;
  32. /**
  33. 偏移量变化了
  34. @param offsetX 当前偏移量
  35. */
  36. - (void)yb_offsetXChanged:(CGFloat)offsetX;
  37. /**
  38. 响应长按手势
  39. */
  40. - (void)yb_respondsToLongPress;
  41. @end
  42. @interface YBIBToolViewHandler : NSObject <YBIBToolViewHandler>
  43. /// 弹出表单视图
  44. @property (nonatomic, strong, readonly) YBIBSheetView *sheetView;
  45. /// 顶部显示页码视图
  46. @property (nonatomic, strong, readonly) YBIBTopView *topView;
  47. @end
  48. NS_ASSUME_NONNULL_END