diff --git a/api/@ohos.display.d.ts b/api/@ohos.display.d.ts index 8903ed874575384c101f9094f70af5c5b4fcf258..12d5e8c3f5b780b54b5ba5348cc434e80a0e740c 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 0d1e0deb2f4caa7a4ce84b5fb8b6558ff8a7ae44..f374d57c568a5853587db6cd7790170d527604ca 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.