From de04ea881dfc1f7865ab9f086af0055a38e55ab8 Mon Sep 17 00:00:00 2001 From: youqijing Date: Sat, 26 Feb 2022 10:42:05 +0800 Subject: [PATCH] Update screenshot.d.ts file. Signed-off-by: youqijing Change-Id: I41937bd8bf1c9613cc1acdbb06406640491e8b8a --- api/@ohos.screenshot.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/@ohos.screenshot.d.ts b/api/@ohos.screenshot.d.ts index 7fa60edc4b..cbb2a2f69f 100644 --- a/api/@ohos.screenshot.d.ts +++ b/api/@ohos.screenshot.d.ts @@ -23,6 +23,14 @@ import image from './@ohos.multimedia.image'; * @since 7 */ declare namespace screenshot { + /** + * Takes a screenshot and saves it as a PixelMap object + * @param options Screenshot options, which consist of screenRect, imageSize, and rotation. You need to set these parameters + * @permission ohos.permission.CAPTURE_SCREEN + * @since 7 + */ + function save(options?: ScreenshotOptions, callback: AsyncCallback): void; + /** * Takes a screenshot and saves it as a PixelMap object * @param options Screenshot options, which consist of screenRect, imageSize, and rotation. You need to set these parameters -- Gitee