From d399ad0af8628c682fa68a25c86719e11303e966 Mon Sep 17 00:00:00 2001 From: sunbees Date: Wed, 6 Mar 2024 12:49:37 +0800 Subject: [PATCH] add interface of OH_NativeXComponent_SetNeedSoftKeyboard Signed-off-by: sunbees Change-Id: I21236eb1085b501f5ff0858af304f0fe2f9ea47a --- arkui/ace_engine/native/libace.ndk.json | 4 ++++ arkui/ace_engine/native/native_interface_xcomponent.h | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index bb330397958..3ce74b73e1b 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -154,5 +154,9 @@ { "first_introduced": "12", "name": "OH_ArkUI_GetNodeHandleFromNapiValue" + }, + { + "first_introduced": "12", + "name": "OH_NativeXComponent_SetNeedSoftKeyboard" } ] \ No newline at end of file diff --git a/arkui/ace_engine/native/native_interface_xcomponent.h b/arkui/ace_engine/native/native_interface_xcomponent.h index 1a2c19b8143..cf971dc0432 100644 --- a/arkui/ace_engine/native/native_interface_xcomponent.h +++ b/arkui/ace_engine/native/native_interface_xcomponent.h @@ -668,6 +668,17 @@ int32_t OH_NativeXComponent_RegisterUIInputEventCallback( ArkUI_UIInputEvent_Type type), ArkUI_UIInputEvent_Type type); +/** + * @brief Set whether the OH_NativeXComponent instance needs soft keyboard. + * @param component Indicates the pointer to this OH_NativeXComponent instance. + * @param needSoftKeyboard Indicates whether the OH_NativeXComponent instance needs soft keyboard or not. + * Default value is false. + * @return Returns the status code of the execution. + * @since 12 + * @version 1.0 + */ +int32_t OH_NativeXComponent_SetNeedSoftKeyboard(OH_NativeXComponent* component, bool needSoftKeyboard); + #ifdef __cplusplus }; #endif -- Gitee