YBIBOrientationReceiveProtocol.h 864 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // YBIBOrientationReceiveProtocol.h
  3. // YBImageBrowserDemo
  4. //
  5. // Created by 波儿菜 on 2019/7/8.
  6. // Copyright © 2019 杨波. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @protocol YBIBOrientationReceiveProtocol <NSObject>
  11. @optional
  12. /**
  13. 图片浏览器的方向将要变化
  14. @param orientation 期望的方向
  15. */
  16. - (void)yb_orientationWillChangeWithExpectOrientation:(UIDeviceOrientation)orientation;
  17. /**
  18. 图片浏览器的方向变化动效调用,实现的变化会自动转换为动画
  19. @param orientation 期望的方向
  20. */
  21. - (void)yb_orientationChangeAnimationWithExpectOrientation:(UIDeviceOrientation)orientation;
  22. /**
  23. 图片浏览器的方向已经变化
  24. @param orientation 当前的方向
  25. */
  26. - (void)yb_orientationDidChangedWithOrientation:(UIDeviceOrientation)orientation;
  27. @end
  28. NS_ASSUME_NONNULL_END