Add IdleEnterer callback
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / application-devel.cpp
index 8ed500a..85a4347 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -30,6 +30,11 @@ void PreInitialize( int* argc, char** argv[] )
   Internal::Adaptor::Application::PreInitialize( argc, argv );
 }
 
+bool AddIdleWithReturnValue( Application application, CallbackBase* callback )
+{
+  return Internal::Adaptor::GetImplementation( application ).AddIdle( callback, true );
+}
+
 } // namespace DevelApplication
 
 } // namespace Dali