#import #import #import "UnityAppController.h" #include "UndefinePlatforms.h" #include typedef struct #ifdef __LP64__ mach_header_64 #else mach_header #endif MachHeader; #include "RedefinePlatforms.h" //! Project version number for UnityFramework. FOUNDATION_EXPORT double UnityFrameworkVersionNumber; //! Project version string for UnityFramework. FOUNDATION_EXPORT const unsigned char UnityFrameworkVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import #pragma once // important app life-cycle events __attribute__ ((visibility("default"))) @protocol UnityFrameworkListener @optional - (void)unityDidUnload:(NSNotification*)notification; - (void)unityDidQuit:(NSNotification*)notification; @end __attribute__ ((visibility("default"))) @interface UnityFramework : NSObject { } - (UnityAppController*)appController; + (UnityFramework*)getInstance; - (void)setDataBundleId:(const char*)bundleId; - (void)runUIApplicationMainWithArgc:(int)argc argv:(char*[])argv; - (void)runEmbeddedWithArgc:(int)argc argv:(char*[])argv appLaunchOpts:(NSDictionary*)appLaunchOpts; - (void)unloadApplication; - (void)quitApplication:(int)exitCode; - (void)registerFrameworkListener:(id)obj; - (void)unregisterFrameworkListener:(id)obj; - (void)showUnityWindow; - (void)pause:(bool)pause; - (void)setExecuteHeader:(const MachHeader*)header; - (void)sendMessageToGOWithName:(const char*)goName functionName:(const char*)name message:(const char*)msg; @end