diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 123b7b22a4ba2c1eff68eea651504bd0eaa21600..969edefbaac736ceb0f8b9d062ff9ef362bd1199 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -7670,11 +7670,26 @@ declare namespace window { * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since arkts {'1.1':'15', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 dynamic */ on(type: 'windowHighlightChange', callback: Callback): void; + /** + * Register the callback of window highlight state change + * + * @param { Callback } callback - Callback used to return the highlight status of the window. + * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Parameter verification failed. + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @syscap SystemCapability.Window.SessionManager + * @atomicservice + * @since 22 static + */ + onWindowHighlightChange(callback: Callback): void; + /** * Unregister the callback of window highlight state change * @@ -7688,10 +7703,25 @@ declare namespace window { * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since arkts {'1.1':'15', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 dynamic */ off(type: 'windowHighlightChange', callback?: Callback): void; + + /** + * Unregister the callback of window highlight state change + * + * @param { Callback } callback - Callback used to return the highlight status of the window. + * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types; + * 3. Parameter verification failed. + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @syscap SystemCapability.Window.SessionManager + * @atomicservice + * @since 22 static + */ + offWindowHighlightChange(callback?: Callback): void; /** * Bind dialog to the target window.