This function will be called when the app is inactive. Note, when receiving a phone call it is invoked.
| 184 | |
| 185 | // This function will be called when the app is inactive. Note, when receiving a phone call it is invoked. |
| 186 | void AppDelegate::applicationDidEnterBackground() |
| 187 | { |
| 188 | Director::getInstance()->stopAnimation(); |
| 189 | |
| 190 | #if USE_AUDIO_ENGINE |
| 191 | AudioEngine::pauseAll(); |
| 192 | #endif |
| 193 | } |
| 194 | |
| 195 | // this function will be called when the app is active again |
| 196 | void AppDelegate::applicationWillEnterForeground() |
nothing calls this directly
no outgoing calls
no test coverage detected