Cocos2d x UIApplicationIDBECOS2D-x v3.5中的应用

Cocos2d x UIApplicationIDBECOS2D-x v3.5中的应用,cocos2d-x,Cocos2d X,我们如何在cocos2d-x中观察UIApplicationIDbecomeActivityfication之类的东西 像这样的命令: 这需要是多平台的 否则,委托给每个平台并强制它以自己的方式实现它 在AppDelegate.cpp中,有AppDelegate::applicationidenterbackground()和AppDelegate::applicationWillEnterForeground()。就目前而言,我已经足够了解这些了 否则有一个叫做EVentDispatcher的

我们如何在cocos2d-x中观察UIApplicationIDbecomeActivityfication之类的东西

像这样的命令:

  • 这需要是多平台的
  • 否则,委托给每个平台并强制它以自己的方式实现它

  • 在AppDelegate.cpp中,有
    AppDelegate::applicationidenterbackground()
    AppDelegate::applicationWillEnterForeground()
    。就目前而言,我已经足够了解这些了

    否则有一个叫做EVentDispatcher的东西,它的Singleton可以通过Director实例获取,但我不确定它是否可以用于上述事件