2012-04-24 15:02:18 +08:00
|
|
|
|
|
|
|
#ifndef __CCEVENT_TYPE_H__
|
|
|
|
#define __CCEVENT_TYPE_H__
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This header is used for defining event types using in CCNotificationCenter
|
|
|
|
*/
|
|
|
|
|
2012-06-14 18:37:57 +08:00
|
|
|
// The application will come to foreground.
|
|
|
|
// This message is used for reloading resources before come to foreground on Android.
|
|
|
|
// This message is posted in main.cpp.
|
2012-04-24 15:02:18 +08:00
|
|
|
#define EVNET_COME_TO_FOREGROUND "event_come_to_foreground"
|
|
|
|
|
2012-06-14 18:37:57 +08:00
|
|
|
// The application will come to background.
|
|
|
|
// This message is used for doing something before coming to background, such as save CCRenderTexture.
|
|
|
|
// This message is posted in cocos2dx/platform/android/jni/MessageJni.cpp.
|
|
|
|
#define EVENT_COME_TO_BACKGROUND "event_come_to_background"
|
|
|
|
|
2012-04-24 15:02:18 +08:00
|
|
|
#endif // __CCEVENT_TYPE_H__
|