state_handler.terminate = &OnTerminate;
state_handler.pause = &OnPause;
state_handler.resume = &OnResume;
- state_handler.device_orientation = &OnDeviceOrientationChanged;
+ state_handler.device_orientation = NULL;
state_handler.low_memory = &OnLowMemory;
- state_handler.low_battery = &OnLowBattery;
+ state_handler.low_battery = NULL;
state_handler.language_changed = &OnLanguageChanged;
state_handler.region_format_changed = &OnRegionFormatChanged;
}
-void
-_AppImpl::OnDeviceOrientationChanged(app_device_orientation_e orientation, void* user_data)
-{
- _AppImpl* pAppImpl = _AppImpl::GetInstance();
- SysTryReturnVoidResult(NID_APP, pAppImpl != null, E_INVALID_STATE, "[E_INVALID_STATE] Getting App instance failed.");
- SysTryReturnVoidResult(NID_APP, pAppImpl->__pIAppImpl != null, E_INVALID_STATE, "[E_INVALID_STATE] Getting App instance failed.");
-
- const AppState state = _AppInfo::GetAppState();
- SysTryReturnVoidResult(NID_APP, state == INITIALIZING || state == RUNNING, E_INVALID_STATE, "[E_INVALID_STATE] Invalid application state : %d.", state);
-
- pAppImpl->__pIAppImpl->OnDeviceOrientationChanged(orientation);
-}
-
-
_AppImpl::~_AppImpl(void)
{
__pAppImpl = null;
void
-_AppImpl::OnLowBattery(void* user_data)
-{
- // Osp doesn't implement this callback.
-}
-
-void
_AppImpl::OnBatteryLevelChanged(BatteryLevel batteryLevel)
{
SysTryReturnVoidResult(NID_APP, __pApp != null, E_INVALID_STATE, "[E_INVALID_STATE] Getting internal instance failed.");
static void OnTerminate(void* user_data);
/**
- * Called when an orintation event occurs.
- *
- * @since 2.1
- * @param[in] orientation The information about the orientation event
- */
- static void OnDeviceOrientationChanged(app_device_orientation_e orientation, void* user_data);
-
- /**
* Called when the system memory is running low
*
* @since 2.1
static void OnLowMemory(void* user_data);
/**
- * Called when the battery power is running low
- *
- * @since 2.1
- * @param[in] user_data The user data passed from the callback registration function
- * @remarks This is a system dependent callback function
- */
- static void OnLowBattery(void* user_data);
-
- /**
* Called when language setting changes
*
* @since 2.1