* @param[in] noti Notification handle
* @param[in] type Notification image type
* @param[out] image_path Image file full path
- * @return NOTIFICATION_ERROR_NONE on success,
+ * @return #NOTIFICATION_ERROR_NONE on success,
* other value on failure
- * @retval NOTIFICATION_ERROR_NONE Success
- * @retval NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @pre Notification handle should be created by notification_create().
* @see #notification_image_type_e
* @see notification_create()
/**
* @brief Gets the text from the notification handle.
* @since_tizen @if WEARABLE 2.3.1 @elseif MOBILE 2.3 @endif
+ * @remarks Do not free @a text. It will be freed when notification_free() is called.
* @param[in] noti The notification handle
* @param[in] type The notification text type
* @param[out] text The notification text
/**
* @brief Gets the sound type from the notification handle.
* @since_tizen @if WEARABLE 2.3.1 @elseif MOBILE 2.3 @endif
+ * @remarks Do not free @a path. It will be freed when notification_free() is called.
* @param[in] noti The notification handle
* @param[out] type The notification sound type
* @param[out] path The user sound file path
/**
* @brief Gets the vibrate type from the notification handle.
* @since_tizen @if WEARABLE 2.3.1 @elseif MOBILE 2.3 @endif
+ * @remarks Do not free @a path. It will be freed when notification_free() is called.
* @param[in] noti The notification handle
* @param[out] type The notification sound type
* @param[out] path The user vibration file path
#include <notification.h>
{
- notification_h noti = NULL;
- int noti_err = NOTIFICATION_ERROR_NONE;
- notification_vibration_type_e type = NOTIFICATION_VIBRATION_TYPE_NONE;
+ int noti_err;
+ notification_vibration_type_e type;
+ char *path;
- noti_err = notification_get_vibration(noti, &type, NULL);
+ noti_err = notification_get_vibration(noti, &type, &path);
if (noti_err != NOTIFICATION_ERROR_NONE)
return;
* @brief Sets the launch option for a notification.
* @details When notification data selected in display application, application launched by app_control_send_launch_request with app_control handle.
* @since_tizen @if WEARABLE 2.3.1 @elseif MOBILE 2.3 @endif
+ * @privlevel public
* @privilege http://tizen.org/privilege/appmanager.launch
* @remarks Since 4.0, %http://tizen.org/privilege/appmanager.launch privilege is additionally required.
* @param[in] noti The notification handle
/**
* @brief Gets the launch option from the notification handle.
* @since_tizen @if WEARABLE 2.3.1 @elseif MOBILE 2.3 @endif
- * @remarks You must release @a app_control using app_control_destroy().
+ * @remarks You must release @a option using app_control_destroy().
* @param[in] noti The notification handle
* @param[in] type Launching option type
* @param[out] option The pointer of App Control handler
{
app_control_h app_control = NULL;
- app_control_create(&app_control);
-
- // Do something
noti_err = notification_get_launch_option(noti, NOTIFICATION_LAUNCH_OPTION_APP_CONTROL, (void *)&app_control);
if (noti_err != NOTIFICATION_ERROR_NONE)
return;
+
+ // Do something
+
+ app_control_destroy(app_control);
}
* @endcode
*/
* @details When some event occurs on notification, application launched by app_control_send_launch_request with app_control handle. \n
* Setting event handler of a button means that the notification will show the button.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
+ * @privlevel public
* @privilege http://tizen.org/privilege/appmanager.launch
* @remarks Since 4.0, %http://tizen.org/privilege/appmanager.launch privilege is additionally required.
* @param[in] noti The notification handle
/**
* @brief Gets the event handler of a specific event.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
- * @remarks You must release @a app_control using app_control_destroy().
+ * @remarks You must release @a event_handler using app_control_destroy().
* @param[in] noti The notification handle
* @param[in] event_type Launching option type
* @param[out] event_handler The handler of App Control
{
app_control_h app_control = NULL;
- app_control_create(&app_control);
// Do something
notification_free(noti);
return;
}
+
+ app_control_destroy(app_control);
}
* @endcode
*/
/**
* @brief Sets applications to display the notification.
- * @details All display application is enabled(NOTIFICATION_DISPLAY_APP_ALL) if you do not call this API.
+ * @details All display application is enabled(NOTIFICATION_DISPLAY_APP_ALL) if you do not call this function.
* @since_tizen @if WEARABLE 2.3.1 @elseif MOBILE 2.3 @endif
* @param[in] noti The notification handle
* @param[in] applist The with | operation
* @return #NOTIFICATION_ERROR_NONE on success,
* otherwise any other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @retval #NOTIFICATION_ERROR_NOT_EXIST_ID Priv ID does not exist
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @par Sample code:
* @code
#include <notification.h>
* @return #NOTIFICATION_ERROR_NONE on success,
* otherwise any other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
- * @retval NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @par Sample code:
* @code
#include <notification.h>
* #NOTIFICATION_TYPE_ONGOING can display progress on a notification with #NOTIFICATION_LY_ONGOING_PROGRESS layout.
* @since_tizen @if WEARABLE 2.3.1 @elseif MOBILE 2.3 @endif
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
+ * The returned value should be released using notification_free().
* @param[in] type The notification type
- * @return Notification handle(notification_h) on success,
+ * @return Notification handle(#notification_h) on success,
* otherwise @c NULL on failure
- * @retval notification_h Success
- * @retval NULL Failure
* @exception #NOTIFICATION_ERROR_NONE Success
* @exception #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @exception #NOTIFICATION_ERROR_OUT_OF_MEMORY Out of memory
// Do something
+ notification_free(noti);
}
* @endcode
*/
/**
* @brief Gets the tag of the notification handle.
* @since_tizen @if WEARABLE 2.3.1 @elseif MOBILE 2.3 @endif
+ * @remarks Do not free @a tag. It will be freed when notification_free() is called.
* @param[in] noti Notification handle
* @param[out] tag Tag for loading notification handle
* @return #NOTIFICATION_ERROR_NONE on success,
* @privlevel public
* @privilege %http://tizen.org/privilege/notification
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
+ * The returned value should be released using notification_free().
* @param[in] tag Tag for loading notification handle
- * @return Notification handle(notification_h) on success,
+ * @return Notification handle(#notification_h) on success,
* NULL on failure
- * @retval notification_h Success
- * @retval NULL Failure
* @exception #NOTIFICATION_ERROR_NONE Success
+ * @exception #NOTIFICATION_ERROR_PERMISSION_DENIED The Permission denied
* @exception #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @exception #NOTIFICATION_ERROR_OUT_OF_MEMORY Out of memory
- * @exception #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @see #notification_type_e
* @par Sample code:
* @code
* @return #NOTIFICATION_ERROR_NONE if success,
* other value if failure
* @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @par Sample code:
* @code
#include <notification.h>
* @return #NOTIFICATION_ERROR_NONE if success,
* other value if failure
* @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @pre Notification handle should be created by notification_create().
* @post notification_free().
* @par Sample code:
/**
* @brief Gets the package name of the notification.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
+ * @remarks Do not free @a pkgname. It will be freed when notification_free() is called.
* @param[in] noti Notification handle
* @param[out] pkgname The package name of the notification
* @return #NOTIFICATION_ERROR_NONE on success,
* otherwise a negative error value
- * @retval NOTIFICATION_ERROR_NONE Success
- * @retval NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @par Sample code:
* @code
#include <notification.h>
notification_free(noti);
return;
}
+
}
* @endcode
*/
* @param[in] button_index Button index
* @return #NOTIFICATION_ERROR_NONE on success,
* otherwise a negative error value
- * @retval NOTIFICATION_ERROR_NONE Success
- * @retval NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @par Sample code:
* @code
#include <notification.h>
* @param[in] button_index Button index
* @return #NOTIFICATION_ERROR_NONE on success,
* otherwise a negative error value
- * @retval NOTIFICATION_ERROR_NONE Success
- * @retval NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @par Sample code:
* @code
#include <notification.h>
* @return #NOTIFICATION_ERROR_NONE On success, other value on failure
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @see #notification_h
- * @see #notification_get_auto_remove
* @par Sample code:
* @code
#include <notification.h>
* @param[in] noti Notification handle
* @param[in] template_name Template name
* @return #NOTIFICATION_ERROR_NONE On success, other value on failure
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #NOTIFICATION_ERROR_IO_ERROR I/O error
* @retval #NOTIFICATION_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The Permission denied
* @retval #NOTIFICATION_ERROR_MAX_EXCEEDED Max notification count exceeded
* @see #notification_h
* @see notification_create_from_template()
* @param[in] template_name Template name
* @return Notification handle on success, NULL on failure
* @exception #NOTIFICATION_ERROR_NONE Success
+ * @exception #NOTIFICATION_ERROR_PERMISSION_DENIED The Permission denied
* @exception #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @exception #NOTIFICATION_ERROR_OUT_OF_MEMORY Out of memory
- * @exception #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @exception #NOTIFICATION_ERROR_FROM_DB Error from DB query
* @see #notification_h
* @see notification_save_as_template()
* @param[out] state Notification block state
* @return #NOTIFICATION_ERROR_NONE On success, other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #NOTIFICATION_ERROR_OUT_OF_MEMORY out of memory
* @retval #NOTIFICATION_ERROR_IO_ERROR I/O Error
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED Permission denied
* @retval #NOTIFICATION_ERROR_SERVICE_NOT_READY No response from notification service
* @see #notification_block_state_e
* @par Sample code:
* @param[in] progress Percentage value of progressive data
* @return #NOTIFICATION_ERROR_NONE on success, other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
- * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @par Sample code:
* @code
#include <notification_internal.h>
* @param[in] size Bytes of progressive data
* @return #NOTIFICATION_ERROR_NONE if success, other value if failure
* @retval #NOTIFICATION_ERROR_NONE Success
- * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @par Sample code:
* @code
#include <notification_internal.h>
* @param[in] content Text to update
* @return #NOTIFICATION_ERROR_NONE on success, other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
- * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @par Sample code:
* @code
#include <notification_internal.h>
* @param[out] count The numbers of all notifications
* @return #NOTIFICATION_ERROR_NONE on success, other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
- * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #NOTIFICATION_ERROR_IO_ERROR I/O Error
* @retval #NOTIFICATION_ERROR_FROM_DB Error from DB
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
*/
int notification_get_all_count(notification_type_e type, int *count);
int notification_get_all_count_for_uid(notification_type_e type, int *count, uid_t uid);
* @param[in] type Notification type
* @return #NOTIFICATION_ERROR_NONE on success, other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
- * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @see #notification_type_e
* @par Sample code:
* @code
* @param[in] app_id Caller application id
* @return #NOTIFICATION_ERROR_NONE on success, other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
- * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @par Sample code:
* @code
#include <notification.h>
* @param[in] type Notification type
* @return #NOTIFICATION_ERROR_NONE if success, other value if failure
* @retval #NOTIFICATION_ERROR_NONE Success
- * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @par Sample code:
* @code
#include <notification.h>
* @param[in] priv_id Priv ID
* @return #NOTIFICATION_ERROR_NONE if success, other value if failure
* @retval #NOTIFICATION_ERROR_NONE Success
- * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @par Sample code:
* @code
#include <notification.h>
* @return #NOTIFICATION_ERROR_NONE on success,
* otherwise any other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @pre Notification handle should be created by notification_create().
* @post notification_free().
* @par Sample code:
* @return #NOTIFICATION_ERROR_NONE on success,
* otherwise any other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
- * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #NOTIFICATION_ERROR_NOT_EXIST_ID Priv ID does not exist
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @par Sample code:
* @code
#include <notification.h>
* @return #NOTIFICATION_ERROR_NONE on success,
* otherwise any other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @see notification_unregister_detailed_changed_cb()
* @par Sample code:
* @code
* @return #NOTIFICATION_ERROR_NONE on success,
* otherwise any other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @see notification_register_detailed_changed_cb()
* @par Sample code:
* @code
* @return #NOTIFICATION_ERROR_NONE on success,
* otherwise any other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #NOTIFICATION_ERROR_IO_ERROR I/O Error
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED Permission denied
* @retval #NOTIFICATION_ERROR_OUT_OF_MEMORY Out of memory
* @retval #NOTIFICATION_ERROR_SERVICE_NOT_READY No response from notification service
* @see #notification_send_event()
* @param[in] template_name Template name
* @return Notification handle on success, NULL on failure
* @exception #NOTIFICATION_ERROR_NONE Success
- * @exception #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @exception #NOTIFICATION_ERROR_PERMISSION_DENIED The Permission denied
+ * @exception #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @exception #NOTIFICATION_ERROR_IO_ERROR I/O Error
* @exception #NOTIFICATION_ERROR_OUT_OF_MEMORY Out of memory
- * @exception #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @exception #NOTIFICATION_ERROR_FROM_DB Error from DB query
* @exception #NOTIFICATION_ERROR_SERVICE_NOT_READY No response from notification service
* @see #notification_h
* @param[in] label Label of Caller application
* @return #NOTIFICATION_ERROR_NONE on success, other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
- * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @par Sample code:
* @code
#include <notification.h>
* @param[out] label Label of Caller application
* @return #NOTIFICATION_ERROR_NONE on success, other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
- * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @par Sample code:
* @code
#include <notification.h>
* @param[in] display_applist Combination value of display list
* @return #NOTIFICATION_ERROR_NONE on success, other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
- * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #NOTIFICATION_ERROR_IO_ERROR I/O error
* @retval #NOTIFICATION_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @retval #NOTIFICATION_ERROR_FROM_DB Error from DB query
* @retval #NOTIFICATION_ERROR_SERVICE_NOT_READY No response from notification service
* @par Sample code:
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @privlevel public
* @privilege %http://tizen.org/privilege/notification
+ * @remarks The @a list should be released using notification_free_list().
* @param[in] type The notification type
* @param[in] count The returned notification data number
* @param[out] list The notification list handle
* @return #NOTIFICATION_ERROR_NONE on success,
* otherwise any other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @see #notification_list_h
* @par Sample code:
* @code
if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
+
+ notification_free_list(noti_list);
}
* @endcode
*/
-int notification_get_list(notification_type_e type,
- int count,
- notification_list_h *list);
+int notification_get_list(notification_type_e type, int count,
+ notification_list_h *list);
-int notification_get_list_for_uid(notification_type_e type,
- int count,
- notification_list_h *list, uid_t uid);
+int notification_get_list_for_uid(notification_type_e type, int count,
+ notification_list_h *list, uid_t uid);
/**
* @internal
* @since_tizen 4.0
* @privlevel public
* @privilege %http://tizen.org/privilege/notification
+ * @remarks The @a list should be released using notification_free_list().
* @param[in] type The notification type
* @param[in] page_number The page number of the value set \n
* It starts from @c 1.
* @return #NOTIFICATION_ERROR_NONE on success,
* otherwise any other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @see #notification_list_h
*/
int notification_get_list_by_page(notification_type_e type,
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @privlevel public
* @privilege %http://tizen.org/privilege/notification
+ * @remarks The @a list should be released using notification_free_list().
* @param[in] app_id The caller application ID
* @param[in] group_id The group ID
* @param[in] priv_id The private ID
* @return #NOTIFICATION_ERROR_NONE if success,
* other value if failure
* @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @see #notification_list_h
* @par Sample code:
* @code
if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
+
+ notification_free_list(noti_list);
}
* @endcode
*/
* @return #NOTIFICATION_ERROR_NONE on success,
* otherwise any other value on failure
* @retval #NOTIFICATION_ERROR_NONE Success
+ * @retval #NOTIFICATION_ERROR_PERMISSION_DENIED Permission denied
* @retval #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval NOTIFICATION_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
* @pre notification_get_grouping_list() or notification_get_detail_list().
* @see #notification_list_h
* @par Sample code:
* @brief Gets the head pointer of the notification list.
* @since_tizen @if WEARABLE 2.3.1 @elseif MOBILE 2.3 @endif
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
+ * The returned value should be released using notification_free_list().
* @param[in] list Notification list handle
- * @return Notification list handle on success, NULL on failure
- * @retval #notification_list_h Success
- * @retval NULL Failure
+ * @return #notification_list_h on success, NULL on failure
* @exception #NOTIFICATION_ERROR_NONE Success
* @exception #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @see #notification_list_h
}
noti_list = notification_list_get_head(noti_list);
+
+ notification_free_list(noti_list);
}
* @endcode
*/
* @brief Gets the tail pointer to the notification list.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
+ * The returned value should be released using notification_free_list().
* @param[in] list Notification list handle
- * @return Notification list handle on success, NULL on failure
- * @retval #notification_list_h Success
- * @retval NULL Failure
+ * @return #notification_list_h on success, NULL on failure
* @exception #NOTIFICATION_ERROR_NONE Success
* @exception #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @see #notification_list_h
}
noti_list = notification_list_get_tail(noti_list);
+
+ notification_free_list(noti_list);
}
* @endcode
*/
* @brief Gets the previous pointer of the current notification list.
* @since_tizen @if WEARABLE 2.3.1 @elseif MOBILE 2.3 @endif
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
+ * The returned value should be released using notification_free_list().
* @param[in] list Notification list handle
- * @return Notification list handle on success, NULL on failure
- * @retval #notification_list_h Success
- * @retval NULL Failure
+ * @return #notification_list_h on success, NULL on failure
* @exception #NOTIFICATION_ERROR_NONE Success
* @exception #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @see #notification_list_h
}
noti_list = notification_list_get_prev(noti_list);
+
+ notification_free_list(noti_list);
}
* @endcode
*/
* @brief Gets the next pointer of the current notification list.
* @since_tizen @if WEARABLE 2.3.1 @elseif MOBILE 2.3 @endif
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
+ * The returned value should be released using notification_free_list().
* @param[in] list Notification list handle
- * @return Notification list handle on success, NULL on failure
- * @retval #notification_list_h Success
- * @retval NULL Failure
+ * @return #notification_list_h on success, NULL on failure
* @exception #NOTIFICATION_ERROR_NONE Success
* @exception #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @see #notification_list_h
...
{
notification_list_h noti_list = NULL;
- int noti_err = NOTIFICATION_ERROR_NONE;
+ int noti_err;
noti_err = notification_get_grouping_list(NOTIFICATION_TYPE_NONE, -1, ¬i_list);
if (noti_err != NOTIFICATION_ERROR_NONE) {
}
noti_list = notification_list_get_next(noti_list);
+
+ notification_free_list(noti_list);
}
* @endcode
*/
* @brief Gets the notification handle that the list has.
* @since_tizen @if WEARABLE 2.3.1 @elseif MOBILE 2.3 @endif
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
+ * The returned value should be released using notification_free().
* @param[in] list Notification list handle
- * @return Notification handle on success, NULL on failure
- * @retval #notification_h Success
- * @retval NULL Failure
+ * @return #notification_h on success, NULL on failure
* @exception #NOTIFICATION_ERROR_NONE Success
* @exception #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @see #notification_list_h
}
noti = notification_list_get_data(noti_list);
+
+ notification_free(noti);
}
* @endcode
*/
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
* @param[in] list Notification list handle
* @param[in] noti Notification handle
- * @return Notification handle on success, NULL on failure
- * @retval #notification_h Success
- * @retval NULL Failure
+ * @return #notification_h on success, NULL on failure
* @exception #NOTIFICATION_ERROR_NONE Success
* @exception #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @exception #NOTIFICATION_ERROR_OUT_OF_MEMORY Out of memory
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
* @param[in] list The notification list handle
* @param[in] noti The notification handle
- * @return Notification handle on success,
+ * @return #notification_h on success,
* otherwise @c NULL on failure
- * @retval #notification_h Success
- * @retval NULL Failure
* @exception #NOTIFICATION_ERROR_NONE Success
* @exception #NOTIFICATION_ERROR_INVALID_PARAMETER Invalid input value
* @see #notification_list_h
...
noti_list = notification_list_remove(noti_list, noti);
+
}
* @endcode
*/
notification_list_h notification_list_remove(notification_list_h list,
- notification_h noti);
+ notification_h noti);
/**
* @}
NOTIFICATION_LY_NOTI_EVENT_MULTIPLE, /**< Layout for notification. Used to inform multiple event */
NOTIFICATION_LY_NOTI_THUMBNAIL, /**< Layout for notification. Used to display images */
NOTIFICATION_LY_ONGOING_EVENT, /**< Layout for ongoing notification. Used to display text message.
- * notifications with NOTIFICATION_LY_ONGOING_EVENT can not be protected from
+ * notifications with #NOTIFICATION_LY_ONGOING_EVENT can not be protected from
* removing by user since tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif */
NOTIFICATION_LY_ONGOING_PROGRESS, /**< Layout for ongoing notification. Used to display progress */
NOTIFICATION_LY_EXTENSION, /**< Layout for extended notification (Since 4.0) */
NOTIFICATION_IMAGE_TYPE_ICON_FOR_LOCK, /**< Lock screen icon */
NOTIFICATION_IMAGE_TYPE_THUMBNAIL, /**< Thumbnail */
NOTIFICATION_IMAGE_TYPE_THUMBNAIL_FOR_LOCK, /**< Lock screen thumbnail */
- NOTIFICATION_IMAGE_TYPE_ICON_SUB, /**< Icon */
+ NOTIFICATION_IMAGE_TYPE_ICON_SUB, /**< Sub icon */
NOTIFICATION_IMAGE_TYPE_BACKGROUND, /**< image displayed on background */
NOTIFICATION_IMAGE_TYPE_LIST_1, /**< Image for thumbnail list */
NOTIFICATION_IMAGE_TYPE_LIST_2, /**< Image for thumbnail list */