From c46491b59136cc1f58e0329acdf3f0f91ca2dc64 Mon Sep 17 00:00:00 2001 From: youqijing Date: Fri, 25 Mar 2022 10:19:25 +0800 Subject: [PATCH] Fix screenshot interface codex Signed-off-by: youqijing Change-Id: I50f1f481a0d318e6d51d14c528aacafeb506b5ff --- api/@ohos.screenshot.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/api/@ohos.screenshot.d.ts b/api/@ohos.screenshot.d.ts index 0e91364d1e..ac10790d38 100644 --- a/api/@ohos.screenshot.d.ts +++ b/api/@ohos.screenshot.d.ts @@ -29,8 +29,16 @@ declare namespace screenshot { * @permission ohos.permission.CAPTURE_SCREEN * @since 7 */ - function save(options?: ScreenshotOptions, callback: AsyncCallback): void; + 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 + * @permission ohos.permission.CAPTURE_SCREEN + * @since 7 + */ + function save(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