From 59e101643a0add321d5546d0e4eb9298b22a6ded Mon Sep 17 00:00:00 2001 From: "DESKTOP-H8KLN8I\\lisitao" Date: Mon, 4 Mar 2024 21:19:09 +0800 Subject: [PATCH] [NDK] fix event extraParam Signed-off-by:lisitaolisitao3@huawei.com Signed-off-by: DESKTOP-H8KLN8I\lisitao --- arkui/ace_engine/native/native_node.h | 7 +++++-- arkui/ace_engine/native/native_type.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 0c3c6eb2c..4d03de172 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -4051,13 +4051,16 @@ typedef struct { * * @param node Indicates the target node. * @param eventType Indicates the type of event to register. - * @param eventId Indicates the custom event ID, which is passed in the callback of {@link ArkUI_NodeEvent} + * @param eventId Indicates the custom event ID, which is passed in the callback of <@link ArkUI_NodeEvent> * when the event is triggered. + * @param extraParam Indicates the custom event parameter, which is passed in the callback of + * <@link ArkUI_NodeEvent> when the event is triggered. * @return Returns 0 if success. * Returns 401 if a parameter exception occurs. * Returns 106102 if the dynamic implementation library of the native API was not found. */ - int32_t (*registerNodeEvent)(ArkUI_NodeHandle node, ArkUI_NodeEventType eventType, int32_t eventId); + int32_t (*registerNodeEvent)( + ArkUI_NodeHandle node, ArkUI_NodeEventType eventType, int32_t eventId, void* extraParam); /** * @brief Unregisters an event for the specified node. diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index 3cdd51892..990440584 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -571,7 +571,7 @@ typedef enum { * @since 12 */ typedef enum { - /** The value can be changed to yes or no based on the component. */ + /** Whether the component can be identified by the accessibility service is dependent on the component. */ ARKUI_ACCESSIBILITY_MODE_AUTO = 0, /** The component can be identified by the accessibility service. */ ARKUI_ACCESSIBILITY_MODE_ENABLED, -- Gitee