* @brief Adds the system event handler.
* @since_tizen 2.3
* @remarks The service application can handle low memory event, low battery event, language setting changed event and region format changed event.
+ * @remarks The @a handler should be released using service_app_remove_event_handler().
* @param[out] handler The event handler
* @param[in] event_type The system event type
* @param[in] callback The callback function
* @retval #APP_ERROR_NONE Successful
* @retval #APP_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #APP_ERROR_OUT_OF_MEMORY Out of memory
+ * @par Example
+ * @code
+#include <service_app.h>
+
+static void
+service_app_low_battery(app_event_info_h event_info, void *user_data)
+{
+}
+...
+int main()
+{
+ int r;
+ app_event_handler_h handler = NULL;
+
+ r = service_app_add_event_handler(&handler, APP_EVENT_LOW_BATTERY, service_app_low_battery, NULL);
+ ...
+ r = service_app_remove_event_handler(handler);
+
+ return 0;
+}
+ * @endcode
* @see app_event_type_e
* @see app_event_cb()
* @see service_app_remove_event_handler()