ecore: start adding life cycle support to Efl.Loop.
authorCedric BAIL <cedric@osg.samsung.com>
Mon, 25 Sep 2017 22:47:00 +0000 (15:47 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 25 Sep 2017 22:47:00 +0000 (15:47 -0700)
pause event is triggered when no more windows are visible to any user.
resume event is triggered when a window make the application visible
for the first time to the user after a pause or when starting the application.

src/lib/ecore/efl_loop.eo

index 2a24ae7..f63acc6 100644 (file)
@@ -135,6 +135,8 @@ class Efl.Loop (Efl.Object)
       poll,high; [[Event occurs multiple time per second. The exact tick is undefined and could be adjusted system wide.]]
       poll,medium; [[Event occurs multiple time per minute. The exact tick is undefined and could be adjusted system wide.]]
       poll,low; [[Event occurs multiple time every 15 minutes. The exact tick is undefined and could be adjusted system wide.]]
+      pause; [[Called when the window is going not be displayed for some time]]
+      resume; [[Called before a window get rendered after a pause event]]
    }
    implements {
       Efl.Object.constructor;