diff --git a/api/@ohos.arkui.uiExtension.d.ts b/api/@ohos.arkui.uiExtension.d.ts index 7468cf4da..022f42d63 100644 --- a/api/@ohos.arkui.uiExtension.d.ts +++ b/api/@ohos.arkui.uiExtension.d.ts @@ -120,6 +120,20 @@ declare namespace uiExtension { * @since 12 */ createSubWindowWithOptions(name: string, subWindowOptions: window.SubWindowOptions): Promise; + + /** + * Set the watermark flag on the UIExtension window + * + * @param { boolean } enable - Add water mark flag to the UIExtension window if true, or remove flag if false + * @returns { Promise } - The promise returned by the function + * @throws { BusinessError } 1300002 - The UIExtension window proxy is abnormal. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @throws { BusinessError } 1300008 - The operation is on invalid display. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 12 + */ + setWaterMarkFlag(enable: boolean): Promise; } /** diff --git a/api/@ohos.uiExtensionHost.d.ts b/api/@ohos.uiExtensionHost.d.ts index 794dd318f..c62c0a2ad 100644 --- a/api/@ohos.uiExtensionHost.d.ts +++ b/api/@ohos.uiExtensionHost.d.ts @@ -138,6 +138,20 @@ declare namespace uiExtensionHost { * @since 12 */ createSubWindowWithOptions(name: string, subWindowOptions: window.SubWindowOptions): Promise; + + /** + * Set the watermark flag on the UIExtension window + * + * @param { boolean } enable - Add water mark flag to the UIExtension window if true, or remove flag if false + * @returns { Promise } - The promise returned by the function + * @throws { BusinessError } 1300002 - The UIExtension window proxy is abnormal. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @throws { BusinessError } 1300008 - The operation is on invalid display. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 12 + */ + setWaterMarkFlag(enable: boolean): Promise; } /**