LifeCycleListener.h 573 B

12345678910111213141516
  1. #pragma once
  2. // important app life-cycle events
  3. @protocol LifeCycleListener<NSObject>
  4. @optional
  5. - (void)didFinishLaunching:(NSNotification*)notification;
  6. - (void)didBecomeActive:(NSNotification*)notification;
  7. - (void)willResignActive:(NSNotification*)notification;
  8. - (void)didEnterBackground:(NSNotification*)notification;
  9. - (void)willEnterForeground:(NSNotification*)notification;
  10. - (void)willTerminate:(NSNotification*)notification;
  11. @end
  12. void UnityRegisterLifeCycleListener(id<LifeCycleListener> obj);
  13. void UnityUnregisterLifeCycleListener(id<LifeCycleListener> obj);