Tizen Native API
6.5
|
This module provides functionalities about ui_application.
- Deprecated:
- Deprecated since tizen 6.0.
Functions | |
int | ui_application_init () TIZEN_DEPRECATED_API |
Initializes ui_application. | |
int | ui_application_run (int argc, char **argv, ui_application_event_s *events, int count, void *user_data) TIZEN_DEPRECATED_API |
Runs ui_application. This triggers application main loop. | |
int | ui_application_term (void) TIZEN_DEPRECATED_API |
Deinitializes ui_application. | |
Typedefs | |
typedef bool(* | ui_application_event_cb )(void *user_data, void *event_info) |
The ui_application event callback function signature. |
Typedef Documentation
typedef bool(* ui_application_event_cb)(void *user_data, void *event_info) |
The ui_application event callback function signature.
- Deprecated:
- Deprecated since tizen 6.0.
- Since :
- 3.0
- Parameters:
-
[in] user_data The user data to be passed to the given event_callback functions [in] event_info Event Information data (It can casts to app_control_h in app_control())
- Returns:
- This is reserved
Enumeration Type Documentation
Enumeration for ui_application event type.
- Deprecated:
- Deprecated since tizen 6.0.
- Remarks:
- PRE events are designed for overriding the default behavior of the events. Normally, ui_application triggers ui_viewmgr actions on those event time. To ignore them, you can use PRE event callbacks.
- Since :
- 3.0
- Enumerator:
Function Documentation
int ui_application_init | ( | ) |
Initializes ui_application.
- Deprecated:
- Deprecated since tizen 6.0.
This function initializes ui_application and ui_viewmgr.
- Since :
- 3.0
- Remarks:
- Before exit application, call ui_application_term().
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
UI_VIEWMGR_ERROR_NONE Successful UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS Initialization was already done UI_VIEWMGR_ERROR_OUT_OF_MEMORY Fails to allocate memory
int ui_application_run | ( | int | argc, |
char ** | argv, | ||
ui_application_event_s * | events, | ||
int | count, | ||
void * | user_data | ||
) |
Runs ui_application. This triggers application main loop.
- Deprecated:
- Deprecated since tizen 6.0.
- Remarks:
- This wraps ui_app_main() function. You don't need to call it manually.
- Since :
- 3.0
- Parameters:
-
[in] argc The argument count [in] argv The argument vector [in] events Event callback list [in] count Event callback count [in] user_data User data for event callbacks
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
UI_VIEWMGR_ERROR_NONE Successful UI_VIEWMGR_ERROR_INVALID_PARAMETER Invalid parameters UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS The main loop already starts UI_VIEWMGR_ERROR_NOT_PERMITTED If Initialization was not performed yet
- Precondition:
- Call ui_application_init() before calling this function.
- Warning:
- Don't call ui_app_main() additionally.
int ui_application_term | ( | void | ) |
Deinitializes ui_application.
- Deprecated:
- Deprecated since tizen 6.0.
- Remarks:
- This wraps ui_app_exit() function. You don't need to call it manually.
- Since :
- 3.0
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
UI_VIEWMGR_ERROR_NONE Successful
- Precondition:
- Call ui_application_init() before calling this function.
- Warning:
- Don't call ui_app_exit() additionally.