/**
* @ingroup CAPI_CONTEXT_FRAMEWORK
- * @defgroup CAPI_CONTEXT_ACTIVITY_MODULE Activity Recognition
+ * @defgroup CAPI_CONTEXT_ACTIVITY_MODULE Activity Recognition (Deprecated)
*
* @brief The activity recognition API allows applications to be notified and
* react when a user activity is recognized.
/**
* @ingroup CAPI_CONTEXT_FRAMEWORK
- * @defgroup CAPI_CONTEXT_GESTURE_MODULE Gesture Recognition
+ * @defgroup CAPI_CONTEXT_GESTURE_MODULE Gesture Recognition (Deprecated)
*
* @brief The gesture recognition API allows applications to be notified and
* react when the user performs a gesture.
#endif // __cplusplus
/**
+ * @deprecated Deprecated since 6.0.
* @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;
/**
+ * @deprecated Deprecated since 6.0.
* @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;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Enumeration for error codes.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
} activity_error_e;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Enumeration for activity types.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
} activity_type_e;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Enumeration for recognition accuracy.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
} activity_accuracy_e;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Called when a activity is recognized.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
typedef void(* activity_recognition_cb)(activity_type_e activity, const activity_data_h data, double timestamp, activity_error_e error, void *user_data);
/**
+ * @deprecated Deprecated since 6.0.
* @brief Check whether the activity is supported or not.
* @details Check if the given activity type is supported in the current device.
*
* @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);
+int activity_is_supported(activity_type_e activity, bool* supported) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Initializes an activity handle.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @see activity_release()
*/
-int activity_create(activity_h *handle);
+int activity_create(activity_h *handle) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Releases the resources occupied by the activity handle.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @pre activity_create()
*/
-int activity_release(activity_h handle);
+int activity_release(activity_h handle) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Starts to recognize an activity.
* @details Sets a callback function to be invoked when the activity is detected,
* and starts to monitor occurrences of the activity.
* @post activity_recognition_cb()
* @see activity_stop_recognition()
*/
-int activity_start_recognition(activity_h handle, activity_type_e activity, activity_recognition_cb callback, void *user_data);
+int activity_start_recognition(activity_h handle, activity_type_e activity, activity_recognition_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Stops recognizing the activity registered to the activity handle.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @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);
+int activity_stop_recognition(activity_h handle) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Gets the recognition accuracy.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @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);
+int activity_get_accuracy(const activity_data_h data, activity_accuracy_e *accuracy) TIZEN_DEPRECATED_API;
#ifdef __cplusplus
}
#endif // __cplusplus
/**
+ * @deprecated Deprecated since 6.0.
* @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;
/**
+ * @deprecated Deprecated since 6.0.
* @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;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Enumeration for error codes.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
} gesture_error_e;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Enumeration for gesture types.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
} gesture_type_e;
/**
+ * @deprecated Deprecated since 6.0.
* @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.
} gesture_option_e;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Enumeration for gesture event types.
* @details With regards to type of the gesture, gesture_get_event() returns one of the followings.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
} gesture_event_e;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Called when a gesture is detected.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
typedef void(* gesture_recognition_cb)(gesture_type_e gesture, const gesture_data_h data, double timestamp, gesture_error_e error, void *user_data);
/**
+ * @deprecated Deprecated since 6.0.
* @brief Check whether the gesture is supported or not.
* @details Check if the given gesture type is supported in the current device.
*
* @retval #GESTURE_ERROR_OPERATION_FAILED Operation failed because of a system error
* @retval #GESTURE_ERROR_PERMISSION_DENIED Does not have permission to use this
*/
-int gesture_is_supported(gesture_type_e gesture, bool* supported);
+int gesture_is_supported(gesture_type_e gesture, bool* supported) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Initializes a gesture handle.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @see gesture_release()
*/
-int gesture_create(gesture_h *handle);
+int gesture_create(gesture_h *handle) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Releases the resources occupied by the gesture handle.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @pre gesture_create()
*/
-int gesture_release(gesture_h handle);
+int gesture_release(gesture_h handle) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Starts to recognize a gesture.
* @details Sets a callback function to be invoked when the gesture is detected,
* and starts to monitor occurrences of the gesture.
* @post gesture_recognition_cb()
* @see gesture_stop_recognition()
*/
-int gesture_start_recognition(gesture_h handle, gesture_type_e gesture, gesture_option_e option, gesture_recognition_cb callback, void *user_data);
+int gesture_start_recognition(gesture_h handle, gesture_type_e gesture, gesture_option_e option, gesture_recognition_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Stops recognizing the gesture registered to the gesture handle.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @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);
+int gesture_stop_recognition(gesture_h handle) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Gets the gesture event from the gesture data received.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @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);
+int gesture_get_event(const gesture_data_h data, gesture_event_e *event) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 6.0.
* @brief Gets the tilting degrees from #GESTURE_TILT data received.
*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @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);
+int gesture_get_tilt(const gesture_data_h data, int *x, int *y) TIZEN_DEPRECATED_API;
#ifdef __cplusplus
}
Name: capi-context-motion
Summary: Tizen Native Motion Recognition API
-Version: 2.0.2
+Version: 2.0.3
Release: 1
Group: Service/Context
License: Apache-2.0
EXPORT_API int activity_is_supported(activity_type_e activity, bool* supported)
{
+ _W("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
if (supported)
*supported = false;
EXPORT_API int activity_create(activity_h *handle)
{
+ _W("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
ASSERT_SUPPORTED(FEATURE_ACTIVITY);
//LCOV_EXCL_START
ASSERT_NOT_NULL(handle);
EXPORT_API int activity_release(activity_h handle)
{
+ _W("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
ASSERT_SUPPORTED(FEATURE_ACTIVITY);
//LCOV_EXCL_START
ASSERT_NOT_NULL(handle);
EXPORT_API int activity_start_recognition(activity_h handle, activity_type_e activity, activity_recognition_cb callback, void *user_data)
{
+ _W("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
ASSERT_SUPPORTED(FEATURE_ACTIVITY);
//LCOV_EXCL_START
ASSERT_NOT_NULL(handle);
EXPORT_API int activity_stop_recognition(activity_h handle)
{
+ _W("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
ASSERT_SUPPORTED(FEATURE_ACTIVITY);
//LCOV_EXCL_START
ASSERT_NOT_NULL(handle);
EXPORT_API int activity_get_accuracy(const activity_data_h data, activity_accuracy_e *accuracy)
{
+ _W("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
ASSERT_SUPPORTED(FEATURE_ACTIVITY);
//LCOV_EXCL_START
ASSERT_NOT_NULL(data);
EXPORT_API int gesture_is_supported(gesture_type_e gesture, bool* supported)
{
+ _W("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
if (supported)
*supported = false;
EXPORT_API int gesture_create(gesture_h *handle)
{
+ _W("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
ASSERT_SUPPORTED(FEATURE_GESTURE);
//LCOV_EXCL_START
ASSERT_NOT_NULL(handle);
EXPORT_API int gesture_release(gesture_h handle)
{
+ _W("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
ASSERT_SUPPORTED(FEATURE_GESTURE);
//LCOV_EXCL_START
ASSERT_NOT_NULL(handle);
EXPORT_API int gesture_start_recognition(gesture_h handle, gesture_type_e gesture, gesture_option_e option, gesture_recognition_cb callback, void *user_data)
{
+ _W("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
ASSERT_SUPPORTED(FEATURE_GESTURE);
//LCOV_EXCL_START
ASSERT_NOT_NULL(handle);
EXPORT_API int gesture_stop_recognition(gesture_h handle)
{
+ _W("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
ASSERT_SUPPORTED(FEATURE_GESTURE);
//LCOV_EXCL_START
ASSERT_NOT_NULL(handle);
EXPORT_API int gesture_get_event(const gesture_data_h data, gesture_event_e *event)
{
+ _W("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
ASSERT_SUPPORTED(FEATURE_GESTURE);
//LCOV_EXCL_START
ASSERT_NOT_NULL(data);
EXPORT_API int gesture_get_tilt(const gesture_data_h data, int *x, int *y)
{
+ _W("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
ASSERT_SUPPORTED(FEATURE_GESTURE);
//LCOV_EXCL_START
ASSERT_NOT_NULL(data);