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

Method applicationDidEnterBackground

templates/cpp/Source/AppDelegate.cpp:97–104  ·  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

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

Callers 3

PauseMethod · 0.45

Calls 2

getInstanceFunction · 0.85
stopAnimationMethod · 0.80

Tested by

no test coverage detected