diff --git a/api/@ohos.display.d.ts b/api/@ohos.display.d.ts index 8903ed874575384c101f9094f70af5c5b4fcf258..432368a53c351c24db685f6f5f3b975c9672c76d 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 aded7ac14a9e909f31d5f3c4cb82881c1d8b7c33..a330162eab4b2045d1253352195add4ab50269d1 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.