mName(),
mStylesheet( stylesheet ),
mEnvironmentOptions(),
- mInitialized( false ),
mSlotDelegate( this )
{
// Get mName from environment options
{
Dali::StyleMonitor::Get().SetTheme( mStylesheet );
}
+}
- if( !mInitialized )
- {
- mAdaptor->NotifySceneCreated();
- mInitialized = true;
- }
+void Application::DoStart()
+{
+ mAdaptor->NotifySceneCreated();
}
void Application::DoTerminate()
{
mFramework->AddAbortCallback( MakeCallback( this, &Application::QuitFromMainLoop ) );
- mInitialized = true;
-
DoInit();
// Wire up the LifecycleController
Dali::Application application(this);
mInitSignal.Emit( application );
- mAdaptor->NotifySceneCreated();
+ DoStart();
}
void Application::OnTerminate()
void Application::OnPause()
{
- DoPause();
+ // A DALi app should handle Pause/Resume events.
+ // DALi just delivers the framework Pause event to the application, but not actually pause DALi core.
+ // Pausing DALi core only occurs on the Window Hidden framework event
Dali::Application application(this);
mPauseSignal.Emit( application );
}
// This ensures we do not just redraw the last frame before pausing if that's not required
Dali::Application application(this);
mResumeSignal.Emit( application );
- DoResume();
+
+ // DALi just delivers the framework Resume event to the application.
+ // Resuming DALi core only occurs on the Window Show framework event
}
void Application::OnReset()