未验证 提交 c471feb4 编写于 作者: O openharmony_ci 提交者: Gitee

!3048 IDE概述页发布日期去除,添加链接:无需翻译

Merge pull request !3048 from 葛亚芳/master
......@@ -4,7 +4,7 @@
DevEco Studio is a one-stop, distributed platform developed based on the IntelliJ IDEA Community (Open Source) Edition. It helps you develop versatile all-device, all-scenario applications, offering distributed multi-device development, debugging, and simulation, as well as comprehensive quality and security safeguards.
DevEco Studio 3.0 Beta3 (released on March 30, 2022) stands out in the following aspects:
[DevEco Studio 3.0 Beta3](https://developer.harmonyos.com/cn/develop/deveco-studio#download_beta_openharmony) stands out in the following aspects:
- One-stop information acquisition platform
- A wide range of device project templates
......
......@@ -38,7 +38,7 @@ Describes the attributes of a display.
| id | number | Yes| No| ID of the display.|
| name | string | Yes| No| Name of the display.|
| alive | boolean | Yes| No| Whether the display is alive.|
| state | [DisplayState](#DisplayState) | Yes| No| State of the display.|
| state | [DisplayState](#displaystate) | Yes| No| State of the display.|
| refreshRate | number | Yes| No| Refresh rate of the display.|
| rotation | number | Yes| No| Screen rotation angle of the display.|
| width | number | Yes| No| Width of the display, in pixels.|
......@@ -61,7 +61,7 @@ Obtains the default display object.
- Parameters
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| callback | AsyncCallback<[Display](#Display)> | Yes| Callback used to return the default display object.|
| callback | AsyncCallback<[Display](#display)> | Yes| Callback used to return the default display object.|
- Example
```
......@@ -88,7 +88,7 @@ Obtains the default display object.
| Type | Description |
| ---------------------------------- | ---------------------------------------------- |
| Promise<[Display](#Display)> | Promise used to return the default display object.|
| Promise<[Display](#display)> | Promise used to return the default display object.|
- Example
......@@ -113,7 +113,7 @@ Obtains all the display objects.
| Name | Type | Mandatory| Description |
| -------- | ---------------------------------------------------- | ---- | ------------------------------- |
| callback | AsyncCallback<Array<[Display](Display)>> | Yes | Callback used to return all the display objects.|
| callback | AsyncCallback<Array<[Display](#display)>> | Yes | Callback used to return all the display objects.|
- Example
......@@ -139,7 +139,7 @@ Obtains all the display objects.
| Type | Description |
| ----------------------------------------------- | ------------------------------------------------------- |
| Promise<Array<[Display](#Display)>> | Promise used to return an array containing all the display objects.|
| Promise<Array<[Display](#display)>> | Promise used to return an array containing all the display objects.|
- Example
......
......@@ -18,8 +18,8 @@ Describes screenshot options.
| Name | Type | Mandatory| Description |
| ---------- | ------------- | ---- | ------------------------------------------------------------ |
| screenRect | [Rect](#Rect) | No | Region of the screen to capture. If this parameter is null, the full screen will be captured.|
| imageSize | [Size](#Size) | No | Size of the screen region to capture. If this parameter is null, the full screen will be captured.|
| screenRect | [Rect](#rect) | No | Region of the screen to capture. If this parameter is null, the full screen will be captured.|
| imageSize | [Size](#size) | No | Size of the screen region to capture. If this parameter is null, the full screen will be captured.|
| rotation | number | No | Rotation angle of the screenshot. Currently, the value can be **0** only. The default value is **0**.|
......@@ -62,7 +62,7 @@ Takes a screenshot and saves it as a **PixelMap** object. This method uses a cal
| Name | Type | Mandatory| Description |
| -------- | --------------------------------------- | ---- | ------------------------------------------------------------ |
| options | [ScreenshotOptions](#ScreenshotOptions) | No | Screenshot options, which consist of **screenRect**, **imageSize**, and **rotation**. You need to set these parameters.|
| options | [ScreenshotOptions](#screenshotoptions) | No | Screenshot options, which consist of **screenRect**, **imageSize**, and **rotation**. You need to set these parameters.|
| callback | AsyncCallback<image.PixelMap> | Yes | Callback used to return a **PixelMap** object. |
- Example
......@@ -102,7 +102,7 @@ Takes a screenshot and saves it as a **PixelMap** object. This method uses a pro
| Name | Type | Mandatory| Description |
| ------- | --------------------------------------- | ---- | ------------------------------------------------------------ |
| options | [ScreenshotOptions](#ScreenshotOptions) | No | Screenshot options, which consist of **screenRect**, **imageSize**, and **rotation**. You need to set these parameters.|
| options | [ScreenshotOptions](#screenshotoptions) | No | Screenshot options, which consist of **screenRect**, **imageSize**, and **rotation**. You need to set these parameters.|
- Return value
......
......@@ -5,7 +5,7 @@ The interface layer of the window runs in the application process. It loads the
By calling these APIs, you can create and destroy a window, set the position and size of a window, and enter the immersive mode (full-screen mode).
## Available APIs
For details about the APIs, see [Window](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-window.md).
For details about the APIs, see [Window](../reference/apis/js-apis-window.md).
**Table 1** Main window APIs
......
......@@ -180,7 +180,7 @@
- 窗口
- [窗口开发概述](windowmanager/window-overview.md)
- [窗口开发指导](windowmanager/window-guidelines.md)
- 显示设备
- 屏幕属性
- [屏幕属性开发概述](windowmanager/display-overview.md)
- [屏幕属性开发指导](windowmanager/display-guidelines.md)
- 屏幕截图
......
......@@ -4,7 +4,7 @@
HUAWEI DevEco Studio For OpenHarmony(以下简称DevEco Studio)是基于IntelliJ IDEA Community开源版本打造,面向OpenHarmony全场景多设备的一站式集成开发环境(IDE),为开发者提供工程模板创建、开发、编译、调试、发布等E2E的OpenHarmony应用/服务开发。
DevEco Studio 3.0 Beta3(于2022-3-30日发布)作为支撑Openharmony应用和服务开发的IDE,具有以下能力特点:
[DevEco Studio 3.0 Beta3](https://developer.harmonyos.com/cn/develop/deveco-studio#download_beta_openharmony) 作为支撑Openharmony应用和服务开发的IDE,具有以下能力特点:
- 支持一站式的信息获取平台
- 提供多设备工程模板
......
......@@ -245,7 +245,7 @@
1. 将搭载OpenHarmony标准系统的开发板与电脑连接。
2. 点击**File >Project Structure** > **Project > SigningConfigs**界面勾选“**Automatically generate signing**”,等待自动签名完成即可,点击“**OK**”。如下图所示:
2. 点击**File > Project Structure** > **Project > SigningConfigs**界面勾选“**Automatically generate signing**”,等待自动签名完成即可,点击“**OK**”。如下图所示:
![zh-cn_image_0000001268077317](figures/zh-cn_image_0000001268077317.png)
3. 在编辑窗口右上角的工具栏,点击![zh-cn_image_0000001262206247](figures/zh-cn_image_0000001262206247.png)按钮运行。效果如下图所示:
......
......@@ -38,7 +38,7 @@ import display from '@ohos.display';
| id | number | 是 | 否 | 显示设备的id号。|
| name | string | 是 | 否 | 显示设备的名称。|
| alive | boolean | 是 | 否 | 显示设备是否启用。|
| state | [DisplayState](#DisplayState) | 是 | 否 | 显示设备的状态。|
| state | [DisplayState](#displaystate) | 是 | 否 | 显示设备的状态。|
| refreshRate | number | 是 | 否 | 显示设备的刷新率。|
| rotation | number | 是 | 否 | 显示设备的屏幕旋转角度。|
| width | number | 是 | 否 | 显示设备的宽度,单位为像素。|
......@@ -61,7 +61,7 @@ getDefaultDisplay(callback: AsyncCallback<Display>): void
- 参数
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| callback | AsyncCallback<[Display](#Display)> | 是 | 回调返回当前默认的display对象。 |
| callback | AsyncCallback<[Display](#display)> | 是 | 回调返回当前默认的display对象。 |
- 示例
```
......@@ -88,7 +88,7 @@ getDefaultDisplay(): Promise<Display>
| 类型 | 说明 |
| ---------------------------------- | ---------------------------------------------- |
| Promise<[Display](#Display)> | 以Promise形式返回结果,返回默认的display对象。 |
| Promise<[Display](#display)> | 以Promise形式返回结果,返回默认的display对象。 |
- 示例
......@@ -113,7 +113,7 @@ getAllDisplay(callback: AsyncCallback<Array<Display>>): void
| 参数名 | 类型 | 必填 | 说明 |
| -------- | ---------------------------------------------------- | ---- | ------------------------------- |
| callback | AsyncCallback<Array<[Display](Display)>> | 是 | 回调返回当前所有的display对象。 |
| callback | AsyncCallback<Array<[Display](#display)>> | 是 | 回调返回当前所有的display对象。 |
- 示例
......@@ -139,7 +139,7 @@ getAllDisplay(): Promise<Array<Display>>
| 类型 | 说明 |
| ----------------------------------------------- | ------------------------------------------------------- |
| Promise<Array<[Display](#Display)>> | 以Promise形式返回结果,返回包含所有Display对象的Array。 |
| Promise<Array<[Display](#display)>> | 以Promise形式返回结果,返回包含所有Display对象的Array。 |
- 示例
......
......@@ -18,8 +18,8 @@ import screenshot from '@ohos.screenshot';
| 参数名 | 类型 | 必填 | 说明 |
| ---------- | ------------- | ---- | ------------------------------------------------------------ |
| screenRect | [Rect](#Rect) | 否 | 表示截取图像的区域,不传值默认为全屏。|
| imageSize | [Size](#Size) | 否 | 表示截取图像的大小,不传值默认为全屏。|
| screenRect | [Rect](#rect) | 否 | 表示截取图像的区域,不传值默认为全屏。|
| imageSize | [Size](#size) | 否 | 表示截取图像的大小,不传值默认为全屏。|
| rotation | number | 否 | 表示截取图像的旋转角度,当前仅支持输入值为0,默认值为0。|
......@@ -62,7 +62,7 @@ save(options?: ScreenshotOptions, callback: AsyncCallback<image.PixelMap>)
| 参数名 | 类型 | 必填 | 说明 |
| -------- | --------------------------------------- | ---- | ------------------------------------------------------------ |
| options | [ScreenshotOptions](#ScreenshotOptions) | 否 | 该类型的参数包含screenRect,imageSize,rotation三个参数,需要分别设置这三个参数。 |
| options | [ScreenshotOptions](#screenshotoptions) | 否 | 该类型的参数包含screenRect,imageSize,rotation三个参数,需要分别设置这三个参数。 |
| callback | AsyncCallback<image.PixelMap> | 是 | 回调返回一个PixelMap对象。 |
- 示例
......@@ -102,7 +102,7 @@ save(options?: ScreenshotOptions): Promise<image.PixelMap>
| 参数名 | 类型 | 必填 | 说明 |
| ------- | --------------------------------------- | ---- | ------------------------------------------------------------ |
| options | [ScreenshotOptions](#ScreenshotOptions) | 否 | 该类型的参数包含screenRect,imageSize,rotation三个参数,需要分别设置这三个参数。 |
| options | [ScreenshotOptions](#screenshotoptions) | 否 | 该类型的参数包含screenRect,imageSize,rotation三个参数,需要分别设置这三个参数。 |
- 返回值
......
......@@ -180,7 +180,7 @@
- 窗口
- [窗口开发概述](windowmanager/window-overview.md)
- [窗口开发指导](windowmanager/window-guidelines.md)
- 显示设备
- 屏幕属性
- [屏幕属性开发概述](windowmanager/display-overview.md)
- [屏幕属性开发指导](windowmanager/display-guidelines.md)
- 屏幕截图
......
......@@ -5,7 +5,7 @@
通过调用窗口接口可以实现窗口创建与销毁,窗口的位置、大小布局,以及进入沉浸式等。
## 接口说明
窗口开放的能力如下:Window类,具体的API详见[接口文档](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-window.md)
窗口开放的能力如下:Window类,具体的API详见[接口文档](../reference/apis/js-apis-window.md)
**表1** 窗口主要接口API
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册