From e31c52529f8e5e7542b89249002bbc77bd6d846e Mon Sep 17 00:00:00 2001 From: dubj Date: Thu, 14 Jul 2022 19:44:21 +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: dubj Change-Id: I68a90310cfb73e344e23730d77c1633ea0cdd389 --- api/@ohos.display.d.ts | 10 +++++++++- api/@ohos.window.d.ts | 9 +++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/api/@ohos.display.d.ts b/api/@ohos.display.d.ts index 8903ed8745..12d5e8c3f5 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 @@ -174,4 +182,4 @@ declare namespace display { } } -export default display; \ No newline at end of file +export default display; diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 0d1e0deb2f..f374d57c56 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -1105,6 +1105,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