From f972565934a6639df86766340bce0f2e700201a4 Mon Sep 17 00:00:00 2001 From: liuyongkai2 Date: Fri, 5 Sep 2025 19:24:11 +0800 Subject: [PATCH] select_detector Signed-off-by: liuyongkai2 --- arkui/ace_engine/native/native_node.h | 13 +++++++++++++ arkui/ace_engine/native/native_type.h | 12 ++++++++++++ 2 files changed, 25 insertions(+) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 516876804a0..e91153bac77 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 e43a92fa2e6..381553091a2 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. -- Gitee