This function will be called when the app is inactive. Note, when receiving a phone call it is invoked.
| 79 | |
| 80 | // This function will be called when the app is inactive. Note, when receiving a phone call it is invoked. |
| 81 | void AppDelegate::applicationDidEnterBackground() |
| 82 | { |
| 83 | Director::getInstance()->stopAnimation(); |
| 84 | |
| 85 | #if USE_AUDIO_ENGINE |
| 86 | AudioEngine::pauseAll(); |
| 87 | #endif |
| 88 | } |
| 89 | |
| 90 | // this function will be called when the app is active again |
| 91 | void AppDelegate::applicationWillEnterForeground() |
nothing calls this directly
no test coverage detected