SDKWrapper.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /****************************************************************************
  2. Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd.
  3. http://www.cocos.com
  4. Permission is hereby granted, free of charge, to any person obtaining a copy
  5. of this software and associated engine source code (the "Software"), a limited,
  6. worldwide, royalty-free, non-assignable, revocable and non-exclusive license
  7. to use Cocos Creator solely to develop games on your target platforms. You
  8. shall not use Cocos Creator software for developing other software or tools
  9. that's used for developing games. You are not granted to publish, distribute,
  10. sublicense, and/or sell copies of Cocos Creator.
  11. The software or tools in this License Agreement are licensed, not sold.
  12. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to
  13. you.
  14. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  20. THE SOFTWARE.
  21. ****************************************************************************/
  22. #pragma once
  23. #import <Foundation/Foundation.h>
  24. #import <UIKit/UIKit.h>
  25. NS_ASSUME_NONNULL_BEGIN
  26. @protocol SDKDelegate <NSObject>
  27. @optional
  28. - (void)application:(UIApplication *)application
  29. didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
  30. - (void)applicationDidBecomeActive:(UIApplication *)application;
  31. - (void)applicationWillResignActive:(UIApplication *)application;
  32. - (void)applicationDidEnterBackground:(UIApplication *)application;
  33. - (void)applicationWillEnterForeground:(UIApplication *)application;
  34. - (void)applicationWillTerminate:(UIApplication *)application;
  35. - (void)applicationDidReceiveMemoryWarning:(UIApplication *)application;
  36. @end
  37. @interface SDKWrapper : NSObject
  38. @property(nonatomic, strong) NSString *name;
  39. + (instancetype)shared;
  40. - (void)application:(UIApplication *)application
  41. didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
  42. - (void)applicationDidBecomeActive:(UIApplication *)application;
  43. - (void)applicationWillResignActive:(UIApplication *)application;
  44. - (void)applicationDidEnterBackground:(UIApplication *)application;
  45. - (void)applicationWillEnterForeground:(UIApplication *)application;
  46. - (void)applicationWillTerminate:(UIApplication *)application;
  47. - (void)applicationDidReceiveMemoryWarning:(UIApplication *)application;
  48. @end
  49. NS_ASSUME_NONNULL_END