UnityViewControllerBase.mm 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #import "UnityViewControllerBase.h"
  2. #import "UnityAppController.h"
  3. #import "UnityAppController+ViewHandling.h"
  4. #import "PluginBase/UnityViewControllerListener.h"
  5. @implementation UnityViewControllerBase
  6. - (void)viewWillLayoutSubviews
  7. {
  8. [super viewWillLayoutSubviews];
  9. AppController_SendUnityViewControllerNotification(kUnityViewWillLayoutSubviews);
  10. }
  11. - (void)viewDidLayoutSubviews
  12. {
  13. [super viewDidLayoutSubviews];
  14. AppController_SendUnityViewControllerNotification(kUnityViewDidLayoutSubviews);
  15. }
  16. - (void)viewDidDisappear:(BOOL)animated
  17. {
  18. [super viewDidDisappear: animated];
  19. AppController_SendUnityViewControllerNotification(kUnityViewDidDisappear);
  20. }
  21. - (void)viewWillDisappear:(BOOL)animated
  22. {
  23. [super viewWillDisappear: animated];
  24. AppController_SendUnityViewControllerNotification(kUnityViewWillDisappear);
  25. }
  26. - (void)viewDidAppear:(BOOL)animated
  27. {
  28. [super viewDidAppear: animated];
  29. AppController_SendUnityViewControllerNotification(kUnityViewDidAppear);
  30. }
  31. - (void)viewWillAppear:(BOOL)animated
  32. {
  33. [super viewWillAppear: animated];
  34. AppController_SendUnityViewControllerNotification(kUnityViewWillAppear);
  35. }
  36. @end