/**
* @brief Enumeration for Preference Error.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
*/
typedef enum {
PREFERENCE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
/**
* @brief Called when the given key's value in the preference changes.
* @details When the @a key is added or removed, this callback function is skipped(only update can be handled).
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] key The name of the key in the preference
* @param[in] user_data The user data passed from the callback registration function
* @pre This function is invoked when the value of the key is overwritten after you register this callback using preference_set_changed_cb().
/**
* @brief Called to get key string, once for each key-value pair in the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @remarks You should not free the @a key returned by this function.
* @param[in] key The key of the value added to the preference
* @param[in] user_data The user data passed from the foreach function
/**
* @brief Sets an integer value in the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] key The name of the key to modify
* @param[in] value The new @c int value for the given key
* @return @c 0 on success,
/**
* @brief Gets an integer value from the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] key The name of the key to retrieve
* @param[out] value The @c int value for the given key
* @return @c 0 on success,
/**
* @brief Sets a double value in the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] key The name of the key to modify
* @param[in] value The new @c double value associated with the given key
* @return @c 0 on success,
/**
* @brief Gets a double value from the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] key The name of the key to retrieve
* @param[out] value The @c double value associated with the given key
* @return @c 0 on success,
/**
* @brief Sets a string value in the preference.
* @details It makes a deep copy of the added string value.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] key The name of the key to modify
* @param[in] value The new @c string value associated with the given key
* @return @c 0 on success,
/**
* @brief Gets a string value from the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @remarks @a value must be released using free().
* @param[in] key The name of the key to retrieve
* @param[out] value The @c string value associated with the given key
/**
* @brief Sets a boolean value in the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] key The name of the key to modify
* @param[in] value The new @c boolean value associated with the given key
* @return @c 0 on success,
/**
* @brief Gets a boolean value from the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] key The name of the key to retrieve
* @param[out] value The @c boolean value associated with the given key
* @return @c 0 on success,
/**
* @brief Removes any value with the given @a key from the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] key The name of the key to remove
* @return @c 0 on success,
* otherwise a negative error value
/**
* @brief Checks whether the given @a key exists in the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] key The name of the key to check
* @param[out] existing If @c true the @a key exists in the preference,
* otherwise @c false
/**
* @brief Removes all key-value pairs from the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @return @c 0 on success,
* otherwise a negative error value
* @retval #PREFERENCE_ERROR_NONE Successful
/**
* @brief Registers a callback function to be invoked when value of the given key in the preference changes.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] key The name of the key to monitor
* @param[in] callback The callback function to register
* @param[in] user_data The user data to be passed to the callback function
/**
* @brief Unregisters the callback function.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] key The name of the key to monitor
* @return @c 0 on success,
* otherwise a negative error value
/**
* @brief Retrieves all key-value pairs in the preference by invoking the callback function.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
* @param[in] callback The callback function to get key value once for each key-value pair in the preference
* @param[in] user_data The user data to be passed to the callback function
* @return @c 0 on success,