MCPcopy Create free account
hub / github.com/axmolengine/axmol / applicationDidEnterBackground

Method applicationDidEnterBackground

templates/lua/Source/AppDelegate.cpp:81–88  ·  view source on GitHub ↗

This function will be called when the app is inactive. Note, when receiving a phone call it is invoked.

Source from the content-addressed store, hash-verified

79
80// This function will be called when the app is inactive. Note, when receiving a phone call it is invoked.
81void 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
91void AppDelegate::applicationWillEnterForeground()

Callers

nothing calls this directly

Calls 2

getInstanceFunction · 0.85
stopAnimationMethod · 0.80

Tested by

no test coverage detected