UnityViewControllerBase+iOS.h 995 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. @interface UnityViewControllerBase (iOS)
  3. - (BOOL)shouldAutorotate;
  4. - (BOOL)prefersStatusBarHidden;
  5. - (UIStatusBarStyle)preferredStatusBarStyle;
  6. - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator;
  7. @end
  8. // for better handling of user-imposed screen orientation we will have specific ViewController implementations
  9. // view controllers constrained to one orientation
  10. @interface UnityPortraitOnlyViewController : UnityViewControllerBase
  11. {
  12. }
  13. @end
  14. @interface UnityPortraitUpsideDownOnlyViewController : UnityViewControllerBase
  15. {
  16. }
  17. @end
  18. @interface UnityLandscapeLeftOnlyViewController : UnityViewControllerBase
  19. {
  20. }
  21. @end
  22. @interface UnityLandscapeRightOnlyViewController : UnityViewControllerBase
  23. {
  24. }
  25. @end
  26. // this is default view controller implementation (autorotation enabled)
  27. @interface UnityDefaultViewController : UnityViewControllerBase
  28. {
  29. }
  30. @end
  31. NSUInteger EnabledAutorotationInterfaceOrientations();