diff --git a/api/@ohos.screenshot.d.ts b/api/@ohos.screenshot.d.ts index 0e91364d1ed5051f4bbfee3141599a61bb055b61..ac10790d38cd149d399d812e6284a8c3deeb1497 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