#pragma once // important app life-cycle events @protocol LifeCycleListener @optional - (void)didFinishLaunching:(NSNotification*)notification; - (void)didBecomeActive:(NSNotification*)notification; - (void)willResignActive:(NSNotification*)notification; - (void)didEnterBackground:(NSNotification*)notification; - (void)willEnterForeground:(NSNotification*)notification; - (void)willTerminate:(NSNotification*)notification; @end void UnityRegisterLifeCycleListener(id obj); void UnityUnregisterLifeCycleListener(id obj);