From dfce096b430a1013f004d18b983aeb436e9f0cc5 Mon Sep 17 00:00:00 2001 From: "sungwook79.park" Date: Wed, 22 Nov 2023 19:39:37 +0900 Subject: [PATCH] [ACR-1798][capi-ui-gesture] Remove all guide Signed-off-by: sungwook79.park --- docs/application/native/guides/index.md | 3 +- .../guides/text-input/capi-ui-gesture.md | 250 ------------------ .../native/guides/text-input/overview.md | 10 +- docs/application/toc_all.md | 3 +- 4 files changed, 5 insertions(+), 261 deletions(-) delete mode 100644 docs/application/native/guides/text-input/capi-ui-gesture.md diff --git a/docs/application/native/guides/index.md b/docs/application/native/guides/index.md index a388c6c089..70276d1ec3 100644 --- a/docs/application/native/guides/index.md +++ b/docs/application/native/guides/index.md @@ -234,11 +234,10 @@ The following list defines Tizen Native API. The list describes the API modules - **UIX** - The UIX API module contains submodule APIs for handling input method, recognizing gestures, and managing sound data such as voice commands. + The UIX API module contains submodule APIs for handling input method and managing sound data such as voice commands. | API submodule | Functionality | API reference | Guide | | ------------- | ------------------------------------------------ | ------------- | ------- | - | Gesture | Provides functions for recognizing hand gestures from input sensor data. | [wearable](../api/wearable/latest/group__CAPI__UIX__GESTURE__MODULE.html) (since 6.0) | [Gesture](text-input/capi-ui-gesture.md) | | Input Method | Provides functions for starting the IME application life-cycle, for interacting with the current UI state of the IME, and getting attributes and events. | [mobile](../api/mobile/latest/group__CAPI__UIX__INPUTMETHOD__MODULE.html) (since 2.4), [wearable](../api/wearable/latest/group__CAPI__UIX__INPUTMETHOD__MODULE.html) (since 3.0) | [Input Method](text-input/input-method.md) | | Input Method Manager | Provides functions for launching the input method editor (IME) list and selector settings. | [mobile](../api/mobile/latest/group__CAPI__UIX__INPUTMETHOD__MANAGER__MODULE.html) (since 2.4), [wearable](../api/wearable/latest/group__CAPI__UIX__INPUTMETHOD__MANAGER__MODULE.html) (since 3.0) | [Input Method](text-input/input-method.md) | | Multi assistance | Provides functions for supporting users to use several assistants. | [mobile](../api/mobile/latest/group__CAPI__UIX__MULTI__ASSISTANT__MODULE.html) (since 5.0), [wearable](../api/wearable/latest/group__CAPI__UIX__MULTI__ASSISTANT__MODULE.html) (since 5.0) | [Input Method](text-input/input-method.md) | diff --git a/docs/application/native/guides/text-input/capi-ui-gesture.md b/docs/application/native/guides/text-input/capi-ui-gesture.md deleted file mode 100644 index 8436bfa6a3..0000000000 --- a/docs/application/native/guides/text-input/capi-ui-gesture.md +++ /dev/null @@ -1,250 +0,0 @@ -# Gesture - -`Gesture` is a movement or position of the hand, body, head, and face, and it expresses emotion, opinion, and so on. - -As there are many gesture types, various methods to recognize gestures on the device are existing. -For example, hand gestures can be recognized based on gyro sensor data, and head movements can be detected with a visual camera and video frames. -According to the targeted gesture, the device and the input sensor, the recognition method can be changed. - -In the current Gesture, only wearable device is targeted and only hand gesture is recognized from input sensor data. - -The main features of the Gesture API include: - -- Getting the supported gesture type - - You can [get the supported gesture type](#info_gesture) to be recognized. - -- Setting gesture options - - You can [set options](#set_option) such as a hand gesture type and option. - -- Preparing the Gesture service for use - - You can [connect the background Gesture daemon](#create_destroy) to be able to operate the gesture. - -- Getting the recognized gesture - - You can get the recognized gesture by [starting and stopping gesture recognition](#start_stop). - - - -## Basic Gesture processes - -To get the recognized gesture, you must follow the following processes: - -1. [Create a handle](#create_destroy) and register an error callback function. - - Create a Gesture handle, which is used for distinguishing your application from other applications that are also using Gesture. - - To get notifications about errors, [register callback functions](#callback). -2. [Check the supported gesture type](#info_gesture). - - Check the gesture type which can be recognized by the gesture service. -3. [Set an option](#set_option) for gesture recognition. - - Set an option to select always-on mode or not. -4. [Start the gesture recognition](#start_stop) and [register a callback function](#callback) for recognition results. - - Start recognizing the gesture and to get the recognition result. -5. Stop the gesture recognition. -6. Destroy the handle. - - -## Prerequisites - -To enable your application to use the Gesture functionality in [wearable](../../api/wearable/latest/group__CAPI__UIX__GESTURE__MODULE.html) applications, include the `` header file in your application: - -```c -#include -``` - - - -## Create and destroy handle - -When your application creates a handle by the Gesture API, the Gesture daemon is invoked and connected for background work. -This daemon and your application communicate as the server and the client. - -1. To use the Gesture library, create a Gesture handle. - - The Gesture handle is used in other Gesture functions as a parameter: - - ```c - void - create_gesture_handle() - { - hand_gesture_h gesture_h; - int ret; - ret = hand_gesture_create(&gesture_h); - if (HAND_GESTURE_ERROR_NONE != ret) - /* Error handling */ - } - ``` - -2. When you no longer need the Gesture library, destroy the Gesture handle using `hand_gesture_destroy()`: - - ```c - void - destroy_gesture_handle(hand_gesture_h gesture_h) - { - int ret; - ret = hand_gesture_destroy(gesture_h); /* gesture_h is the Gesture handle */ - if (HAND_GESTURE_ERROR_NONE != ret) - /* Error handling */ - } - ``` - - - -## Get Gesture information - -You can get the following information about Gesture: - -- Get the supported gesture types by checking whether the gesture type you want is supported or not. - - According to the Gesture engine service, the supported gesture types are different. - The current Gesture engine service supports only one gesture type, `HAND_GESTURE_WRIST_UP`. - If the Gesture engine service is changed to support more gesture types, you can check more supported gesture types using `hand_gesture_is_supported_type()`. - The candidates of the gesture types are defined in the `gesture_common.h` header file as the enumerations of `hand_gesture_type_e`: - - ```c - void - is_supported_gesture_type(hand_gesture_h gesture_h, hand_gesture_type_e gesture_type, bool* is_supported) - { - int ret; - ret = hand_gesture_is_supported_type(gesture_h, gesture_type, is_supported); - if (HAND_GESTURE_ERROR_NONE != ret) - /* Error handling */ - } - ``` - -- Get the information of the Gesture engine service used in current. - - You can get the application ID and name of the current Gesture engine service using `hand_gesture_get_engine_info()`: - - ```c - void - get_info(hand_gesture_h gesture_h) - { - int ret; - char* engine_app_id; - char* engine_name; - - ret = hand_gesture_get_engine_info(gesture_h, &engine_app_id, &engine_name); - if (HAND_GESTURE_ERROR_NONE != ret) - /* Error handling */ - } - ``` - - - -## Set option - -You can select an option to detect hand gestures continuously or not. If you want to make the application detect hand gestures continuously, set the option as `HAND_GESTURE_OPTION_ALWAYS_ON` using `hand_gesture_set_option()`: - -```c -void -set_option(hand_gesture_h gesture_h) -{ - int ret; - ret = hand_gesture_set_option(gesture_h, HAND_GESTURE_OPTION_ALWAYS_ON); - if (HAND_GESTURE_ERROR_NONE != ret) - /* Error handling */ -} -``` - - - -## Set and unset callbacks - -The Gesture provides two types of callbacks for getting error and gesture recognition result. -The enum values, as well as the parameter details, for the callback parameters are defined in the `gesture.h` and `gesture_common.h` header files. - -- Error callback - - When an error occurs, the Gesture library sends a message using a callback: - - > [!NOTE] - > Ensure that you set the error callback function before calling `hand_gesture_start_recognition()`. - - ```c - /* Callback */ - void - error_cb(hand_gesture_h gesture_h, hand_gesture_error_e reason, const char* msg, void* user_data) - { - /* Your code */ - } - - /* Set */ - void - set_error_cb(hand_gesture_h gesture_h) - { - int ret; - ret = hand_gesture_set_error_cb(gesture_h, error_cb, NULL); - if (HAND_GESTURE_ERROR_NONE != ret) - /* Error handling */ - } - - /* Unset */ - void - unset_error_cb(hand_gesture_h gesture_h) - { - int ret; - ret = hand_gesture_unset_error_cb(gesture_h); - if (HAND_GESTURE_ERROR_NONE != ret) - /* Error handling */ - } - ``` - -- Recognition result - - When the hand gesture is recognized, the recognized result is delivered through `hand_gesture_recognition_cb()`. - - You can [set the recognition result callback function](#start_stop) using `hand_gesture_start_recognition()`. - - - -## Start and stop recognizing Gesture - -1. To start recognizing the gesture, use `hand_gesture_start_recognition()`. - - When you start the gesture recognition, you should input the gesture type targeted to be recognized. Before calling `hand_gesture_start_recognition()`, please check whether the target gesture type is supported or not with `hand_gesture_is_supported_type()`. - - After calling `hand_gesture_start_recognition()`, the recognition results will be coming through the callback function `hand_gesture_recognition_cb()`. - When the callback function is invoked, you can handle the recognition results by corresponding to some operations. - For example, when `HAND_GESTURE_WRIST_UP` is occurred, you can turn on the screen of the wearable device: - - ```c - void - recognition_cb(hand_gesture_h gesture_h, hand_gesture_type_e gesture, double timestamp, hand_gesture_error_e error, void* user_data) - { - /* Your code */ - } - - void - start_recognition(hand_gesture_h gesture_h) - { - int ret; - bool is_supported = false; - ret = hand_gesture_is_supported_type(gesture_h, HAND_GESTURE_WRIST_UP, &is_supported); - if (HAND_GESTURE_ERROR_NONE == ret && true == is_supported) - { - ret = hand_gesture_start_recognition(gesture_h, HAND_GESTURE_WRIST_UP, recognition_cb, NULL); - if (HAND_GESTURE_ERROR_NONE != ret) - /* Error handling */ - } - } - ``` - -2. To stop recognizing the gesture, use `hand_gesture_stop_recognition()`: - - ```c - void - stop_recognition(hand_gesture_h gesture_h) - { - int ret; - ret = hand_gesture_stop_recognition(gesture_h); - if (HAND_GESTURE_ERROR_NONE != ret) - /* Error handling */ - } - ``` - - -## Related information -* Dependencies - - Tizen 6.0 and Higher for Wearable diff --git a/docs/application/native/guides/text-input/overview.md b/docs/application/native/guides/text-input/overview.md index 81535f1cfc..951dcef2dc 100644 --- a/docs/application/native/guides/text-input/overview.md +++ b/docs/application/native/guides/text-input/overview.md @@ -1,9 +1,9 @@ -# Text Input, Gesture and Voice +# Text Input and Voice -The text input, gesture and voice features introduce how you can convert speech to text and back to speech, and provide recognized gestures, customized keyboards and voice control, and retrieve previous data in a text input field. +The text input and voice features introduce how you can convert speech to text and back to speech, customized keyboards and voice control, and retrieve previous data in a text input field. -You can use the following text input, gesture and voice features in your native applications: +You can use the following text input and voice features in your native applications: - [Input Method](input-method.md) @@ -21,10 +21,6 @@ You can use the following text input, gesture and voice features in your native You can create an Autofill manager application that shows installed Autofill service and switches to the selected Autofill service. -- [Gesture](capi-ui-gesture.md) **in wearable applications only** - - You can recognize hand gestures from input sensor data. - - [Speech-to-text](stt.md) You can recognize sound data recorded by the user and send the result as text. The result text can, for example, be displayed on the screen. diff --git a/docs/application/toc_all.md b/docs/application/toc_all.md index b1c5f1b12f..dca04d2bf4 100755 --- a/docs/application/toc_all.md +++ b/docs/application/toc_all.md @@ -1031,13 +1031,12 @@ #### [Device Sensors](/application/native/guides/location-sensors/device-sensors.md) #### [User Awareness](/application/native/guides/location-sensors/user-awareness.md) -### Text Input, Gesture, and Voice +### Text Input and Voice #### [Overview](/application/native/guides/text-input/overview.md) #### [Input Method](/application/native/guides/text-input/input-method.md) #### [Autofill](/application/native/guides/text-input/autofill.md) #### [Autofill Service](/application/native/guides/text-input/autofill-service.md) #### [Autofill Manager](/application/native/guides/text-input/autofill-manager.md) -#### [Gesture](/application/native/guides/text-input/capi-ui-gesture.md) #### [Speech-to-text](/application/native/guides/text-input/stt.md) #### [Text-to-speech](/application/native/guides/text-input/tts.md) #### [Text-to-speech Engine](/application/native/guides/text-input/tts-engine.md)