This function will be called when the app is inactive. When comes a phone call,it's be invoked too
| 286 | |
| 287 | // This function will be called when the app is inactive. When comes a phone call,it's be invoked too |
| 288 | void AppDelegate::applicationDidEnterBackground() { |
| 289 | Director::getInstance()->stopAnimation(); |
| 290 | |
| 291 | // if you use SimpleAudioEngine, it must be pause |
| 292 | // SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic(); |
| 293 | } |
| 294 | |
| 295 | // this function will be called when the app is active again |
| 296 | void AppDelegate::applicationWillEnterForeground() { |
nothing calls this directly
no outgoing calls
no test coverage detected