Question
I'm a student currently studying Tizen 2.4 by comparing it with Android. I have two specific questions:
-
What is the equivalent function in Tizen Core Framework for Android's onInputEvent that gets called when UI input occurs?
-
In Tizen 2.4, which function in the Core Framework gets called when UI update occurs due to UI input?
I would greatly appreciate your help with these questions. Thank you.
Answer
Problem Understanding
The user is looking for Tizen equivalents of Android's input event handling and UI update mechanisms, specifically:
- The function that handles UI input events (similar to Android's onInputEvent)
- The function that handles UI updates triggered by input events
Solution Methods
-
For input event handling in Tizen:
- Tizen uses EFL (Enlightenment Foundation Libraries) for event handling
- The equivalent mechanism involves setting event callbacks on Evas objects
- Different event types (mouse, touch, key) have specific callback functions
-
For UI update handling:
- The specific function depends on which Evas object is used
- For image objects, you can use
evas_object_image_pixels_get_callback_set() - Other objects may have different update callbacks
Code Examples
// Example for setting an input event callback
evas_object_event_callback_add(your_object, EVAS_CALLBACK_MOUSE_DOWN, mouse_down_cb, your_data);
// Example for setting a pixels get callback (UI update)
evas_object_image_pixels_get_callback_set(your_image_object, pixels_get_cb, your_data);
Additional Tips
- For comprehensive event handling documentation, refer to:
- Always check the specific documentation for the Evas object you're working with to find the appropriate callbacks