#endif // __cplusplus
/**
- * @brief Handle for controlling the activity recognizer
+ * @brief The activity recognizer controlling handle.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef struct _activity_handle_s* activity_h;
/**
- * @brief Activity data handle delivered through activity_recognition_cb()
+ * @brief Delivery through activity_recognition_cb() of activity data handle.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef struct _activity_data_s* activity_data_h;
/**
- * @brief Error codes
+ * @brief Enumeration for error codes.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
} activity_error_e;
/**
- * @brief Activity types
+ * @brief Enumeration for activity types.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
} activity_type_e;
/**
- * @brief Recognition accuracy
+ * @brief Enumeration for recognition accuracy.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
- * @param[in] activity Activity type to be checked.
- * @param[out] supported @c true, if the activity is recognizable in the current device.@n
- * @c false, otherwise.
+ * @param[in] activity Activity type to be checked
+ * @param[out] supported @c true if the activity is recognizable in the current device,@n
+ * @c false otherwise
*
- * @return 0 if the @c activity is supported, otherwise a negative error value.
- * @retval #ACTIVITY_ERROR_NONE Supported.
- * @retval #ACTIVITY_ERROR_INVALID_PARAMETER Invalid parameter used.
- * @retval #ACTIVITY_ERROR_NOT_SUPPORTED The @c activity is not supported.
- * @retval #ACTIVITY_ERROR_OPERATION_FAILED Operation failed because of a system error.
- * @retval #ACTIVITY_ERROR_PERMISSION_DENIED Does not have permission to use this.
+ * @return @c 0 if the @c activity is supported, otherwise a negative error value
+ * @retval #ACTIVITY_ERROR_NONE Supported
+ * @retval #ACTIVITY_ERROR_INVALID_PARAMETER Invalid parameter used
+ * @retval #ACTIVITY_ERROR_NOT_SUPPORTED The @c activity is not supported
+ * @retval #ACTIVITY_ERROR_OPERATION_FAILED Operation failed because of a system error
+ * @retval #ACTIVITY_ERROR_PERMISSION_DENIED Does not have permission to use this
*/
int activity_is_supported(activity_type_e activity, bool* supported);
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
- * @param[out] handle Activity handle to be initialized.
+ * @param[out] handle Activity handle to be initialized
*
- * @return 0 on success, otherwise a negative error value.
- * @retval #ACTIVITY_ERROR_NONE Successful.
- * @retval #ACTIVITY_ERROR_INVALID_PARAMETER Invalid parameter used.
- * @retval #ACTIVITY_ERROR_NOT_SUPPORTED Activity recognition is not supported.
- * @retval #ACTIVITY_ERROR_OPERATION_FAILED Operation failed because of a system error, e.g., out of memory.
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #ACTIVITY_ERROR_NONE Successful
+ * @retval #ACTIVITY_ERROR_INVALID_PARAMETER Invalid parameter used
+ * @retval #ACTIVITY_ERROR_NOT_SUPPORTED Activity recognition is not supported
+ * @retval #ACTIVITY_ERROR_OPERATION_FAILED Operation failed because of a system error, e.g., out of memory
*
* @see activity_release()
*/
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
- * @param[in] handle Activity handle to be released.
+ * @param[in] handle Activity handle to be released
*
- * @return 0 on success, otherwise a negative error value.
- * @retval #ACTIVITY_ERROR_NONE Successful.
- * @retval #ACTIVITY_ERROR_INVALID_PARAMETER Invalid parameter used.
- * @retval #ACTIVITY_ERROR_NOT_SUPPORTED Activity recognition is not supported.
- * @retval #ACTIVITY_ERROR_OPERATION_FAILED Operation failed because of a system error.
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #ACTIVITY_ERROR_NONE Successful
+ * @retval #ACTIVITY_ERROR_INVALID_PARAMETER Invalid parameter used
+ * @retval #ACTIVITY_ERROR_NOT_SUPPORTED Activity recognition is not supported
+ * @retval #ACTIVITY_ERROR_OPERATION_FAILED Operation failed because of a system error
*
* @pre activity_create()
*/
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
- * @param[in] handle Activity handle to be used to control the activity event.
- * @param[in] activity Activity type to be monitored.
- * @param[in] callback Callback function to receive activity events.
- * @param[in] user_data User data to be passed to the callback function.
+ * @param[in] handle Activity handle to be used to control the activity event
+ * @param[in] activity Activity type to be monitored
+ * @param[in] callback Callback function to receive activity events
+ * @param[in] user_data User data to be passed to the callback function
*
- * @return 0 on success, otherwise a negative error value.
- * @retval #ACTIVITY_ERROR_NONE Successful.
- * @retval #ACTIVITY_ERROR_INVALID_PARAMETER Invalid parameter used.
- * @retval #ACTIVITY_ERROR_NOT_SUPPORTED Activity recognition is not supported.
- * @retval #ACTIVITY_ERROR_ALREADY_STARTED The @c handle is being used already.
- * @retval #ACTIVITY_ERROR_OPERATION_FAILED Operation failed because of a system error.
- * @retval #ACTIVITY_ERROR_PERMISSION_DENIED Does not have permission to use this.
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #ACTIVITY_ERROR_NONE Successful
+ * @retval #ACTIVITY_ERROR_INVALID_PARAMETER Invalid parameter used
+ * @retval #ACTIVITY_ERROR_NOT_SUPPORTED Activity recognition is not supported
+ * @retval #ACTIVITY_ERROR_ALREADY_STARTED The @c handle is being used already
+ * @retval #ACTIVITY_ERROR_OPERATION_FAILED Operation failed because of a system error
+ * @retval #ACTIVITY_ERROR_PERMISSION_DENIED Does not have permission to use this
*
* @pre activity_create()
* @post activity_recognition_cb()
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
- * @param[in] handle Activity handle to release its callback function registered.
+ * @param[in] handle Activity handle to release its callback function registered
*
- * @return 0 on success, otherwise a negative error value.
- * @retval #ACTIVITY_ERROR_NONE Successful.
- * @retval #ACTIVITY_ERROR_INVALID_PARAMETER Invalid parameter used.
- * @retval #ACTIVITY_ERROR_NOT_SUPPORTED Activity recognition is not supported.
- * @retval #ACTIVITY_ERROR_NOT_STARTED Nothing is started using the @c handle.
- * @retval #ACTIVITY_ERROR_OPERATION_FAILED Operation failed because of a system error.
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #ACTIVITY_ERROR_NONE Successful
+ * @retval #ACTIVITY_ERROR_INVALID_PARAMETER Invalid parameter used
+ * @retval #ACTIVITY_ERROR_NOT_SUPPORTED Activity recognition is not supported
+ * @retval #ACTIVITY_ERROR_NOT_STARTED Nothing is started using the @c handle
+ * @retval #ACTIVITY_ERROR_OPERATION_FAILED Operation failed because of a system error
*/
int activity_stop_recognition(activity_h handle);
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
- * @param[in] data Activity data received through activity_cb().
- * @param[out] accuracy Accuracy.
+ * @param[in] data Activity data received through activity_cb()
+ * @param[out] accuracy Accuracy
*
- * @return 0 on success, otherwise a negative error value.
- * @retval #ACTIVITY_ERROR_NONE Successful.
- * @retval #ACTIVITY_ERROR_INVALID_PARAMETER Invalid parameter used.
- * @retval #ACTIVITY_ERROR_NOT_SUPPORTED Activity recognition is not supported.
- * @retval #ACTIVITY_ERROR_OPERATION_FAILED Operation failed because of a system error.
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #ACTIVITY_ERROR_NONE Successful
+ * @retval #ACTIVITY_ERROR_INVALID_PARAMETER Invalid parameter used
+ * @retval #ACTIVITY_ERROR_NOT_SUPPORTED Activity recognition is not supported
+ * @retval #ACTIVITY_ERROR_OPERATION_FAILED Operation failed because of a system error
*/
int activity_get_accuracy(const activity_data_h data, activity_accuracy_e *accuracy);
#endif // __cplusplus
/**
- * @brief Handle for controlling the gesture recognizer
+ * @brief The gesture recognizer controlling handle.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef struct _gesture_handle_s* gesture_h;
/**
- * @brief Gesture data handle delivered through gesture_recognition_cb()
+ * @brief Delivery through gesture_recognition_cb() of gesture data handle.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef struct _gesture_data_s* gesture_data_h;
/**
- * @brief Error codes
+ * @brief Enumeration for error codes.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
} gesture_error_e;
/**
- * @brief Gesture types
+ * @brief Enumeration for gesture types.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
} gesture_type_e;
/**
- * @brief Gesture recognition option
+ * @brief Enumeration for gesture recognition option.
* @details If the default option is used, the system tries to reduce power consumption.
* For example, the recognition engine may stop detecting gestures if the display is turned off.
* Using #GESTURE_OPTION_ALWAYS_ON disables such power-saving functionalities.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @param[in] gesture Gesture type to be checked.
- * @param[out] supported @c true, if the gesture is recognizable in the current device.@n
- * @c false, otherwise.
+ * @param[out] supported @c true if the gesture is recognizable in the current device,@n
+ * @c false otherwise.
*
- * @return 0 if the @c gesture is supported, otherwise a negative error value.
+ * @return @c 0 if the @c gesture is supported, otherwise a negative error value.
* @retval #GESTURE_ERROR_NONE Supported.
* @retval #GESTURE_ERROR_INVALID_PARAMETER Invalid parameter used.
* @retval #GESTURE_ERROR_NOT_SUPPORTED The @c gesture is not supported.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
- * @param[out] handle Gesture handle to be initialized.
+ * @param[out] handle Gesture handle to be initialized
*
- * @return 0 on success, otherwise a negative error value.
- * @retval #GESTURE_ERROR_NONE Successful.
- * @retval #GESTURE_ERROR_INVALID_PARAMETER Invalid parameter used.
- * @retval #GESTURE_ERROR_NOT_SUPPORTED Gesture recognition is not supported.
- * @retval #GESTURE_ERROR_OPERATION_FAILED Operation failed because of a system error, e.g., out of memory.
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #GESTURE_ERROR_NONE Successful
+ * @retval #GESTURE_ERROR_INVALID_PARAMETER Invalid parameter used
+ * @retval #GESTURE_ERROR_NOT_SUPPORTED Gesture recognition is not supported
+ * @retval #GESTURE_ERROR_OPERATION_FAILED Operation failed because of a system error, e.g., out of memory
*
* @see gesture_release()
*/
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
- * @param[in] handle Gesture handle to be released.
+ * @param[in] handle Gesture handle to be released
*
- * @return 0 on success, otherwise a negative error value.
- * @retval #GESTURE_ERROR_NONE Successful.
- * @retval #GESTURE_ERROR_INVALID_PARAMETER Invalid parameter used.
- * @retval #GESTURE_ERROR_NOT_SUPPORTED Gesture recognition is not supported.
- * @retval #GESTURE_ERROR_OPERATION_FAILED Operation failed because of a system error.
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #GESTURE_ERROR_NONE Successful
+ * @retval #GESTURE_ERROR_INVALID_PARAMETER Invalid parameter used
+ * @retval #GESTURE_ERROR_NOT_SUPPORTED Gesture recognition is not supported
+ * @retval #GESTURE_ERROR_OPERATION_FAILED Operation failed because of a system error
*
* @pre gesture_create()
*/
* @param[in] callback Callback function to receive gesture events.
* @param[in] user_data User data to be passed to the callback function.
*
- * @return 0 on success, otherwise a negative error value.
+ * @return @c 0 on success, otherwise a negative error value.
* @retval #GESTURE_ERROR_NONE Successful.
* @retval #GESTURE_ERROR_INVALID_PARAMETER Invalid parameter used.
* @retval #GESTURE_ERROR_NOT_SUPPORTED Gesture recognition is not supported.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
- * @param[in] handle Gesture handle to release its callback function registered.
+ * @param[in] handle Gesture handle to release its callback function registered
*
- * @return 0 on success, otherwise a negative error value.
- * @retval #GESTURE_ERROR_NONE Successful.
- * @retval #GESTURE_ERROR_INVALID_PARAMETER Invalid parameter used.
- * @retval #GESTURE_ERROR_NOT_SUPPORTED Gesture recognition is not supported.
- * @retval #GESTURE_ERROR_NOT_STARTED Nothing is started using the @c handle.
- * @retval #GESTURE_ERROR_OPERATION_FAILED Operation failed because of a system error.
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #GESTURE_ERROR_NONE Successful
+ * @retval #GESTURE_ERROR_INVALID_PARAMETER Invalid parameter used
+ * @retval #GESTURE_ERROR_NOT_SUPPORTED Gesture recognition is not supported
+ * @retval #GESTURE_ERROR_NOT_STARTED Nothing is started using the @c handle
+ * @retval #GESTURE_ERROR_OPERATION_FAILED Operation failed because of a system error
*/
int gesture_stop_recognition(gesture_h handle);
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
- * @param[in] data Gesture data received through a callback function.
- * @param[out] event Gesture event data.
+ * @param[in] data Gesture data received through a callback function
+ * @param[out] event Gesture event data
*
- * @return 0 on success, otherwise a negative error value.
- * @retval #GESTURE_ERROR_NONE Successful.
- * @retval #GESTURE_ERROR_INVALID_PARAMETER Invalid parameter used.
- * @retval #GESTURE_ERROR_NOT_SUPPORTED Gesture recognition is not supported.
- * @retval #GESTURE_ERROR_OPERATION_FAILED Operation failed because of a system error.
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #GESTURE_ERROR_NONE Successful
+ * @retval #GESTURE_ERROR_INVALID_PARAMETER Invalid parameter used
+ * @retval #GESTURE_ERROR_NOT_SUPPORTED Gesture recognition is not supported
+ * @retval #GESTURE_ERROR_OPERATION_FAILED Operation failed because of a system error
*/
int gesture_get_event(const gesture_data_h data, gesture_event_e *event);
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
- * @param[in] data Tilt gesture data received through a callback function.
- * @param[out] x Tilting degree on X-axis.
- * @param[out] y Tilting degree on Y-axis.
+ * @param[in] data Tilt gesture data received through a callback function
+ * @param[out] x Tilting degree on X-axis
+ * @param[out] y Tilting degree on Y-axis
*
- * @return 0 on success, otherwise a negative error value.
- * @retval #GESTURE_ERROR_NONE Successful.
- * @retval #GESTURE_ERROR_INVALID_PARAMETER Invalid parameter used.
- * @retval #GESTURE_ERROR_NOT_SUPPORTED Gesture recognition is not supported.
- * @retval #GESTURE_ERROR_OPERATION_FAILED Operation failed because of a system error.
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #GESTURE_ERROR_NONE Successful
+ * @retval #GESTURE_ERROR_INVALID_PARAMETER Invalid parameter used
+ * @retval #GESTURE_ERROR_NOT_SUPPORTED Gesture recognition is not supported
+ * @retval #GESTURE_ERROR_OPERATION_FAILED Operation failed because of a system error
*/
int gesture_get_tilt(const gesture_data_h data, int *x, int *y);