#include <CCApplicationProtocol.h>
Public Types | |
enum | Platform { OS_WINDOWS, OS_LINUX, OS_MAC, OS_ANDROID, OS_IPHONE, OS_IPAD, OS_BLACKBERRY, OS_NACL, OS_EMSCRIPTEN, OS_TIZEN, OS_WINRT, OS_WP8 } |
Public Member Functions | |
virtual | ~ApplicationProtocol () |
virtual bool | applicationDidFinishLaunching ()=0 |
Implement Director and Scene init code here. More... | |
virtual void | applicationDidEnterBackground ()=0 |
This function will be called when the application enters background. More... | |
virtual void | applicationWillEnterForeground ()=0 |
This function will be called when the application enters foreground. More... | |
virtual void | setAnimationInterval (double interval)=0 |
Callback by Director for limit FPS. More... | |
virtual void | initGLContextAttrs () |
virtual LanguageType | getCurrentLanguage ()=0 |
Get current language config. More... | |
virtual const char * | getCurrentLanguageCode ()=0 |
Get current language iso 639-1 code. More... | |
virtual Platform | getTargetPlatform ()=0 |
Get target platform. More... | |
virtual bool | openURL (const std::string &url)=0 |
Open url in default browser. More... | |
|
inlinevirtual |
|
pure virtual |
This function will be called when the application enters background.
|
pure virtual |
|
pure virtual |
This function will be called when the application enters foreground.
|
pure virtual |
Get current language config.
Implemented in Application, Application, Application, Application, Application, and Application.
|
pure virtual |
Get current language iso 639-1 code.
Implemented in Application, Application, Application, Application, Application, and Application.
|
pure virtual |
Get target platform.
Implemented in Application, Application, Application, Application, Application, and Application.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Open url in default browser.
String | with url to open. |
Implemented in Application, Application, Application, Application, Application, and Application.
|
pure virtual |
Callback by Director for limit FPS.
interval | The time, expressed in seconds, between current frame and next. |
Implemented in Application, Application, Application, Application, Application, and Application.