diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index d3fffd2bfdf4f893ed5642514928fd3f6958885b..07bd14148ab3affd5661c142a436986e8c1857b9 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -8773,11 +8773,26 @@ declare namespace window { * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 + * */ setWindowTouchable(isTouchable: boolean): Promise; + /** + * Sets whether is touchable or not. + * + * @param { boolean } isTouchable is touchable if true, or not if false. + * @returns { Promise } Promise that returns no value. + * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @since 20 + * @arkts 1.2 + */ + setWindowTouchableReturnPromise(isTouchable: boolean): Promise; + /** * Sets whether is touchable or not. * @@ -8801,11 +8816,30 @@ declare namespace window { * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 + * */ setWindowTouchable(isTouchable: boolean, callback: AsyncCallback): void; + /** + * Sets whether is touchable or not. + * + * @param { boolean } isTouchable is touchable if true, or not if false. + * @param { AsyncCallback } callback Callback used to return the result. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @since 20 + * @arkts 1.2 + */ + setWindowTouchableWithCallback(isTouchable: boolean, callback: AsyncCallback): void; + + /** + * @since 20 + * @arkts 1.2 + */ + overload setWindowTouchable { setWindowTouchableReturnPromise, setWindowTouchableWithCallback }; + /** * Set handwrite flag on the window. This flag means only response handwrite event. *