From 20fb17cf96526bb5c0f46ea9aa12cd9f7b10b7e8 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Fri, 5 Aug 2022 17:03:35 +0800 Subject: [PATCH] update docs against 6598+6749 Signed-off-by: wusongqing --- en/application-dev/reference/apis/js-apis-screen.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-screen.md b/en/application-dev/reference/apis/js-apis-screen.md index d2c9431ec4..94f5f3cb5e 100644 --- a/en/application-dev/reference/apis/js-apis-screen.md +++ b/en/application-dev/reference/apis/js-apis-screen.md @@ -223,6 +223,8 @@ Creates a virtual screen. This API uses an asynchronous callback to return the r **System capability**: SystemCapability.WindowManager.WindowManager.Core +**Required permissions**: ohos.permission.CAPTURE_SCREEN (mandatory when **VirtualScreenOption.surfaceId** is valid; available only to system applications) + **Parameters** | Name | Type | Mandatory| Description | @@ -256,6 +258,8 @@ Creates a virtual screen. This API uses a promise to return the result. **System capability**: SystemCapability.WindowManager.WindowManager.Core +**Required permissions**: ohos.permission.CAPTURE_SCREEN (mandatory when **VirtualScreenOption.surfaceId** is valid available only to system applications) + **Parameters** | Name | Type | Mandatory| Description | | ------- | ------------------------------------------- | ---- | ------------------------ | @@ -343,6 +347,8 @@ Sets the surface for a virtual screen. This API uses an asynchronous callback to **System capability**: SystemCapability.WindowManager.WindowManager.Core +**Required permissions**: ohos.permission.CAPTURE_SCREEN (available only to system applications) + **Parameters** | Name | Type | Mandatory| Description | @@ -372,6 +378,8 @@ Sets the surface for a virtual screen. This API uses a promise to return the res **System capability**: SystemCapability.WindowManager.WindowManager.Core +**Required permissions**: ohos.permission.CAPTURE_SCREEN (available only to system applications) + **Parameters** | Name | Type | Mandatory| Description | | --------- | ------ | ---- | ------------- | @@ -696,9 +704,6 @@ Enumerates the screen orientations. | HORIZONTAL | 2 | Horizontal. | | REVERSE_VERTICAL | 3 | Reverse vertical. | | REVERSE_HORIZONTAL | 4 | Reverse horizontal. | -| SENSOR | 5 | The screen orientation follows the sensor direction. | -| SENSOR_VERTICAL | 6 | The screen orientation follows the sensor direction vertically.| -| SENSOR_HORIZONTAL | 7 | The screen orientation follows the sensor direction horizontally.| ## ScreenModeInfo Defines the screen mode information. -- GitLab