YBIBScreenRotationHandler.h 864 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // YBIBScreenRotationHandler.h
  3. // YBImageBrowserDemo
  4. //
  5. // Created by 波儿菜 on 2019/6/8.
  6. // Copyright © 2019 波儿菜. All rights reserved.
  7. //
  8. #import "YBImageBrowser.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface YBIBScreenRotationHandler : NSObject
  11. - (instancetype)initWithBrowser:(YBImageBrowser *)browser;
  12. - (void)startObserveStatusBarOrientation;
  13. - (void)startObserveDeviceOrientation;
  14. - (void)clear;
  15. - (void)configContainerSize:(CGSize)size;
  16. - (CGSize)containerSizeWithOrientation:(UIDeviceOrientation)orientation;
  17. @property (nonatomic, assign, readonly, getter=isRotating) BOOL rotating;
  18. @property (nonatomic, assign, readonly) UIDeviceOrientation currentOrientation;
  19. @property (nonatomic, assign) UIInterfaceOrientationMask supportedOrientations;
  20. @property (nonatomic, assign) NSTimeInterval rotationDuration;
  21. @end
  22. NS_ASSUME_NONNULL_END