* @brief Sets the handler for a specific event.
* @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 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
* @param[in] noti The notification handle
* @param[in] event_type event type
* @param[in] event_handler app control handle
/**
* @brief Gets the event handler of a specific event.
* @remarks You must release @a app_control using app_control_destroy().
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
* @param[in] noti The notification handle
* @param[in] event_type Launching option type
* @param[out] option The pointer of App Control handler
/**
* @brief Gets the package name of the notification
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
* @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
/**
* @brief Adds a button on the notification
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
* @param[in] noti Notification handle
* @param[in] button_index Button index
* @return #NOTIFICATION_ERROR_NONE on success, otherwise a negative error value
/**
* @brief Removes a button on the notification
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
* @param[in] noti Notification handle
* @param[in] button_index Button index
* @return #NOTIFICATION_ERROR_NONE on success, otherwise a negative error value
* @details The 'auto remove' option let the active notification be removed in several seconds after it shows. Default value is true.
* @remarks When 'auto_remove' is set as false, the active notification will not be removed
as long as the user removes the active notification or the app which posted the active notification removes the active notification.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
* @param[in] noti Notification handle
* @param[in] auto_remove Auto remove option
* @return #NOTIFICATION_ERROR_NONE On success, other value if failure
/**
* @brief Gets the 'auto remove' option of the active notification
* @details The 'auto remove' option let the active notification be removed in several seconds after it shows. Default value is true.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
* @param[in] noti Notification handle
* @param[out] auto_remove Auto remove option
* @return #NOTIFICATION_ERROR_NONE On success, other value on failure
NOTIFICATION_ERROR_FROM_DBUS = TIZEN_ERROR_NOTIFICATION | 0x03, /**< Error from DBus */
NOTIFICATION_ERROR_NOT_EXIST_ID = TIZEN_ERROR_NOTIFICATION | 0x04, /**< Not exist private ID */
NOTIFICATION_ERROR_SERVICE_NOT_READY = TIZEN_ERROR_NOTIFICATION | 0x05, /**< No reponse from notification service */
- NOTIFICATION_ERROR_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION, /**< Function not implemented (@b Since: 2.4) */
+ NOTIFICATION_ERROR_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION, /**< Function not implemented (@b Since: @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif) */
} notification_error_e;
/**
* @brief Inserts a notification.
* @details The notification will be inserted to the database and then it will appear in the notification area.
* When notification_create() is called, if priv_id is #NOTIFICATION_PRIV_ID_NONE, priv_id returns the internally set priv_id.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @privlevel public
* @privilege %http://tizen.org/privilege/notification
* @param[in] noti The notification handle
* @internal
* @brief Updates a notification, asynchronously.
* @details The updated notification will appear in the notification area.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @privlevel public
* @privilege %http://tizen.org/privilege/notification
* @remarks This function updates the notification asynchronously.
* @internal
* @brief Registers a callback for all notification events.
* @details The registered callback could be called for all notification events.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @privlevel public
* @privilege %http://tizen.org/privilege/notification
* @param[in] changed_cb The callback function
/**
* @internal
* @brief Unregisters a callback for all notification events.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @privlevel public
* @privilege %http://tizen.org/privilege/notification
* @param[in] changed_cb The callback function
/**
* @brief Returns the notification list handle.
* @details If count is equal to @c -1, all notifications are returned.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @privlevel public
* @privilege %http://tizen.org/privilege/notification
* @param[in] type The notification type
/**
* @brief Returns the notification detail list handle of grouping data.
* @details If count is equal to c -1, all notifications are returned.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @privlevel public
* @privilege %http://tizen.org/privilege/notification
* @param[in] pkgname The caller application package name
/**
* @brief Frees a notification list.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @privlevel public
* @privilege %http://tizen.org/privilege/notification
* @param[in] list The notification list handle
/**
* @brief Gets the tail pointer to the notification list.
- * @since_tizen 2.3
+ * @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.
* @param[in] list Notification list handle
* @return Notification list handle on success, NULL on failure
/**
* @brief Sets the ongoing flag of the notification
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
* @param[in] noti The notification handle
* @param[in] ongoing_flag The ongoing flag
* @return #NOTIFICATION_ERROR_NONE on success,
/**
* @brief Gets the ongoing flag of the notification
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
* @param[in] noti The notification handle
* @param[out] ongoing_flag The ongoing flag
* @return #NOTIFICATION_ERROR_NONE on success,
/**
* @internal
* @brief Unregisters a callback for all notification events.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @privlevel public
* @privilege %http://tizen.org/privilege/notification
* @param[in] changed_cb The callback function
/**
* @internal
* @brief Called when a new message is posted.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] message The message posted
* @param[in] data The user data
* @pre notification_status_monitor_message_cb_set() used to register this callback.
/**
* @internal
* @brief Registers a callback to receive a message.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] callback The callback function
* @param[in] data The user_data
* @return #NOTIFICATION_ERROR_NONE if success, other value if failure
/**
* @internal
* @brief Unregisters a callback to receive a message.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] callback The callback function
* @param[in] data The user_data
* @return #NOTIFICATION_ERROR_NONE if success, other value if failure
/**
* @brief Sets the text domain to localize the notification.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] noti The notification handle
* @param[in] domain The text domain
* @param[in] dir The text dir
/**
* @brief Gets the text domain from the notification handle.
- * @since_tizen 2.3
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @remarks Do not free returned domain and dir. They are freed when notification_free() or notification_free_list() is called.
* @param[in] noti The notification handle
* @param[out] domain The domain
/**< 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 removing by user since tizen 2.4 */
+ * 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_MAX,
/**
* @brief Enumeration for event type on notification.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
*/
typedef enum _notification_event_type {
NOTIFICATION_EVENT_TYPE_CLICK_ON_BUTTON_1 = 0, /** < Event type : Click on button 1 */
/**
* @brief Enumeration for button
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
*/
typedef enum _notification_button_index {
NOTIFICATION_BUTTON_1 = 1, /**< button 1 */
/**
* @brief Enumeration for permission.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
*/
typedef enum notification_permission_type {
NOTIFICATION_PERMISSION_TYPE_NONE = 0,