MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / applicationDidEnterBackground

Method applicationDidEnterBackground

test/browser/cocos2d_hello.cpp:288–293  ·  view source on GitHub ↗

This function will be called when the app is inactive. When comes a phone call,it's be invoked too

Source from the content-addressed store, hash-verified

286
287// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
288void 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
296void AppDelegate::applicationWillEnterForeground() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected