UnityViewControllerBase.h 687 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #import <UIKit/UIKit.h>
  3. #if PLATFORM_IOS
  4. #define UNITY_VIEW_CONTROLLER_BASE_CLASS UIViewController
  5. #elif PLATFORM_TVOS
  6. #import <GameController/GCController.h>
  7. #define UNITY_VIEW_CONTROLLER_BASE_CLASS GCEventViewController
  8. #endif
  9. @interface UnityViewControllerBase : UNITY_VIEW_CONTROLLER_BASE_CLASS
  10. {
  11. }
  12. - (void)viewWillLayoutSubviews;
  13. - (void)viewDidLayoutSubviews;
  14. - (void)viewDidDisappear:(BOOL)animated;
  15. - (void)viewWillDisappear:(BOOL)animated;
  16. - (void)viewDidAppear:(BOOL)animated;
  17. - (void)viewWillAppear:(BOOL)animated;
  18. @end
  19. #if PLATFORM_IOS
  20. #include "UnityViewControllerBase+iOS.h"
  21. #elif PLATFORM_TVOS
  22. #include "UnityViewControllerBase+tvOS.h"
  23. #endif