From 7f1d7a249bc1c4dd92f8b0c0b38432ca5203ba6d Mon Sep 17 00:00:00 2001 From: lijuan124 Date: Wed, 20 Aug 2025 17:48:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EonWillAttachIME=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lijuan124 --- api/arkui/component/search.static.d.ets | 9 +++++++++ api/arkui/component/textInput.static.d.ets | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/api/arkui/component/search.static.d.ets b/api/arkui/component/search.static.d.ets index 9ef38d6790..e7f318dd51 100644 --- a/api/arkui/component/search.static.d.ets +++ b/api/arkui/component/search.static.d.ets @@ -918,6 +918,15 @@ export declare interface SearchAttribute extends CommonMethod { * @since 20 */ default onDidDelete(callback: Callback | undefined): this; + /** + * Called before the search component attach the InputMethod. + * + * @param { Callback | undefined } callback - The triggered function before attach the InputMethod. + * @returns { SearchAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default onWillAttachIME(callback: Callback | undefined): this; /** * Set the custom text menu. * Sets the extended options of the custom context menu on selection, diff --git a/api/arkui/component/textInput.static.d.ets b/api/arkui/component/textInput.static.d.ets index d38c228ed4..8861c2ce97 100644 --- a/api/arkui/component/textInput.static.d.ets +++ b/api/arkui/component/textInput.static.d.ets @@ -1653,6 +1653,15 @@ export declare interface TextInputAttribute extends CommonMethod { * @since 20 */ default onDidDelete(callback: Callback | undefined): this; + /** + * Called before the text input component attach the InputMethod. + * + * @param { Callback | undefined } callback - The triggered function before attach the InputMethod. + * @returns { TextInputAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default onWillAttachIME(callback: Callback | undefined): this; /** * Set the custom text menu. * Sets the extended options of the custom context menu on selection, -- Gitee