diff --git a/api/arkui/component/search.static.d.ets b/api/arkui/component/search.static.d.ets index 9ef38d679032ca0c6bebc13890359718f1d12081..e7f318dd51802925f634004b6aaaf726da1a8a34 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 d38c228ed4337d3d53f2caa6d517b5ecd5b00e06..8861c2ce97a51643dfc6af0bfbebcd04b3c0d73a 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,