This function will be called when the app is inactive. Note, when receiving a phone call it is invoked.
| 95 | |
| 96 | // This function will be called when the app is inactive. Note, when receiving a phone call it is invoked. |
| 97 | void AppDelegate::applicationDidEnterBackground() |
| 98 | { |
| 99 | Director::getInstance()->stopAnimation(); |
| 100 | |
| 101 | #if USE_AUDIO_ENGINE |
| 102 | AudioEngine::pauseAll(); |
| 103 | #endif |
| 104 | } |
| 105 | |
| 106 | // this function will be called when the app is active again |
| 107 | void AppDelegate::applicationWillEnterForeground() |
no test coverage detected