diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 516876804a061d1c1f3c448e81c9ce314a96eb50..e91153bac779e94edca70d994c0e0f68b9f1b399 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -2562,6 +2562,19 @@ typedef enum { */ NODE_TEXT_CONTENT_ALIGN = 1036, + /** + * @brief Set the selected text recognition configuration. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .object The parameter type is {@link ArkUI_SelectDataDetectorConfig}.\n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .object The parameter type is {@link ArkUI_SelectDataDetectorConfig}.\n + * + * @since 21 + */ + NODE_TEXT_ENABLE_SELECTED_DATA_DETECTOR = 1038, + /** * @brief Defines the text content attribute, which can be set, reset, and obtained as required through APIs. * diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index e43a92fa2e6bb1503111cdb5091bfd59e2e200d6..381553091a2eecbd935e46b5cd3040b1eb30a014 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -680,6 +680,18 @@ typedef struct { int32_t size; } ARKUI_TextPickerCascadeRangeContent; +/** + * @brief Defines the select text recognition configuration. + * + * @since 21 + */ +typedef struct { + /** Array of entity types, parameter type is {@link ArkUI_TextDataDetectorType}. */ + const uint32_t* types; + /** Length array. */ + int size; +} ArkUI_SelectDataDetectorConfig; + /** * @brief Enumerates the effects used at the edges of the component when the boundary of the scrollable content is * reached.