From f03777f9c69c676c0a9d3f94172ff8836c4deae0 Mon Sep 17 00:00:00 2001 From: binny1024 Date: Mon, 15 Aug 2022 10:59:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=AA=E5=B1=8F=E8=83=BD=E5=8A=9B=E5=A2=9E?= =?UTF-8?q?=E5=BC=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: binny1024 --- api/@ohos.display.d.ts | 8 ++++++++ api/@ohos.window.d.ts | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/api/@ohos.display.d.ts b/api/@ohos.display.d.ts index 8903ed8745..432368a53c 100644 --- a/api/@ohos.display.d.ts +++ b/api/@ohos.display.d.ts @@ -51,6 +51,14 @@ declare namespace display { */ function getAllDisplay(): Promise>; + /** + * Check whether there is a privacy window on the current display. + * @param displayId Display id to query + * @systemapi Hide this for inner system use. + * @since 9 + */ + function hasPrivateWindow(displayId: number): boolean; + /** * Register the callback for display changes. * @param type: type of callback diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index aded7ac14a..a330162eab 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -1087,6 +1087,15 @@ declare namespace window { */ setPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback): void; + /** + * Ignore this window during screenshot. + * @param isSkip skip if true, or not if false. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @systemapi Hide this for inner system use. + * @since 9 + */ + setSnapshotSkip(isSkip: boolean): void; + /** * Sets whether is touchable or not. * @param isTouchable is touchable if true, or not if false. -- Gitee