diff --git a/en/application-dev/website.md b/en/application-dev/website.md index f166c7ea95fddabafbc923d4af7dc791cddf3d70..0a7e1003720913a2d64b5d7cdb8d73aeb706239e 100644 --- a/en/application-dev/website.md +++ b/en/application-dev/website.md @@ -188,17 +188,10 @@ - [Agent-Powered Scheduled Reminder Development](notification/background-agent-scheduled-reminder-guide.md) - [Debugging Assistant Usage](notification/assistant-guidelines.md) - Window Manager - - Window - - [Window Overview](windowmanager/window-overview.md) - - [Application Window Development (Stage Mode)](windowmanager/application-window-stage.md) - - [Application Window Development (FA Model)](windowmanager/application-window-fa.md) - - [System Window Development (Stage Model Only)](windowmanager/system-window-stage.md) - - Display - - [Display Overview](windowmanager/display-overview.md) - - [Display Development](windowmanager/display-guidelines.md) - - Screenshot - - [Screenshot Overview](windowmanager/screenshot-overview.md) - - [Screenshot Development](windowmanager/screenshot-guidelines.md) + - [Window Overview](windowmanager/window-overview.md) + - [Application Window Development (Stage Mode)](windowmanager/application-window-stage.md) + - [Application Window Development (FA Model)](windowmanager/application-window-fa.md) + - [System Window Development (Stage Model Only)](windowmanager/system-window-stage.md) - WebGL - [WebGL Overview](webgl/webgl-overview.md) - [WebGL Development](webgl/webgl-guidelines.md) diff --git a/en/application-dev/windowmanager/Readme-EN.md b/en/application-dev/windowmanager/Readme-EN.md index 7007e701afe32675c029f5a4734e50b88f82849f..851e4d4c6b0f3837872a60acf8540714ba5edd2d 100644 --- a/en/application-dev/windowmanager/Readme-EN.md +++ b/en/application-dev/windowmanager/Readme-EN.md @@ -1,14 +1,7 @@ # Window Manager -* Window - * [Window Overview](window-overview.md) - * [System Window Development (Stage Model Only)](application-window-stage.md) - * [Application Window Development (FA Model)](application-window-fa.md) - * [Application Window Development (Stage Mode)](system-window-stage.md) -* Display - * [Display Overview](display-overview.md) - * [Display Development](display-guidelines.md) -* Screenshot - * [Screenshot Overview](screenshot-overview.md) - * [Screenshot Development](screenshot-guidelines.md) +- [Window Overview](window-overview.md) +- [System Window Development (Stage Model Only)](application-window-stage.md) +- [Application Window Development (FA Model)](application-window-fa.md) +- [Application Window Development (Stage Mode)](system-window-stage.md) diff --git a/en/application-dev/windowmanager/display-guidelines.md b/en/application-dev/windowmanager/display-guidelines.md deleted file mode 100644 index 10895f9f6a6e9f59c7d7e446eaceb491503bd268..0000000000000000000000000000000000000000 --- a/en/application-dev/windowmanager/display-guidelines.md +++ /dev/null @@ -1,24 +0,0 @@ -# Display Development - -## When to Use - -An application can obtain the default display object or all display objects by calling the **Display** APIs. - -## Available APIs - -For details about the APIs, see [Display](../reference/apis/js-apis-display.md). - -## How to Develop - -Call **getDefaultDisplay(): Promise** to obtain the default display object. An example code snippet is as follows: - -```js -import display from '@ohos.display' // Import the module. - -let disp; // disp is used to save the default display object. -display.getDefaultDisplay().then((disp) => { - console.log('display.getDefaultDisplay success, display :' + JSON.stringify(disp)); -}, (err) => { - console.log('display.getDefaultDisplay failed, error : ' + JSON.stringify(err)); -}) -``` diff --git a/en/application-dev/windowmanager/display-overview.md b/en/application-dev/windowmanager/display-overview.md deleted file mode 100644 index 702ff0961e6111f0d73f16f81e52cf7fcaca444f..0000000000000000000000000000000000000000 --- a/en/application-dev/windowmanager/display-overview.md +++ /dev/null @@ -1,7 +0,0 @@ -# Display Overview - -The **Display** APIs present the window layout of an application. The display attributes include the display ID, name, active status, state, refresh rate, rotation angle, width, height, pixel density, font scaling factor, and exact physical dots per inch. - -## Basic Concepts - -**Display**: a screen visible to an application. It can be used as a window container. It is an abstract concept that is different from a physical screen. diff --git a/en/application-dev/windowmanager/screenshot-guidelines.md b/en/application-dev/windowmanager/screenshot-guidelines.md deleted file mode 100644 index a5023d76ec0645511de1c9a0a5f39779363a5729..0000000000000000000000000000000000000000 --- a/en/application-dev/windowmanager/screenshot-guidelines.md +++ /dev/null @@ -1,37 +0,0 @@ -# Screenshot Development - -## When to Use - -You can specify a display device to take screenshots, with screenshot parameters specified. - -## Available APIs - -For details about the APIs, see [Screenshot](../reference/apis/js-apis-screenshot.md). - -## How to Develop - -Call **save(options?: ScreenshotOptions): Promise** to take a screenshot. In this API, **options** is a predefined screenshot parameter. If **options** is unspecified, the entire screen is captured by default. An example code snippet is as follows: - -```js -import screenshot from '@ohos.screenshot' // Import the module. - -// Set screenshot parameters. -var ScreenshotOptions = { - "screenRect": { - "left": 200, - "top": 100, - "width": 200, - "height": 200}, - "imageSize": { - "width": 300, - "height": 300}, - "rotation": 0 -}; - -let image; // image is used to save the screenshot. -screenshot.save(ScreenshotOptions).then((image) => { - console.log('screenshot.save success, screenshot image :' + JSON.stringify(image)); -}, (err) => { - console.log('screenshot.save failed, error : ' + JSON.stringify(err)); -}) -``` diff --git a/en/application-dev/windowmanager/screenshot-overview.md b/en/application-dev/windowmanager/screenshot-overview.md deleted file mode 100644 index 8f1a485a711e031dfc9762fb803d41c55c4380fd..0000000000000000000000000000000000000000 --- a/en/application-dev/windowmanager/screenshot-overview.md +++ /dev/null @@ -1,7 +0,0 @@ -# Screenshot Overview - -The screenshot APIs, with parameters, enable you to take screenshots on display devices. - -## Basic Concepts - -Screenshot: provides the screenshot capability. diff --git a/zh-cn/application-dev/website.md b/zh-cn/application-dev/website.md index 6c9d12cbdfb8c0f35b27dc34416dff549c3bd219..55a1c0121547cb599123e2d598bc2b884961dd1a 100644 --- a/zh-cn/application-dev/website.md +++ b/zh-cn/application-dev/website.md @@ -189,17 +189,10 @@ - [后台提醒开发指导](notification/background-agent-scheduled-reminder-guide.md) - [调试助手使用指导](notification/assistant-guidelines.md) - 窗口管理 - - 窗口 - - [窗口开发概述](windowmanager/window-overview.md) - - [管理应用窗口(Stage模型)](windowmanager/application-window-stage.md) - - [管理应用窗口(FA模型)](windowmanager/application-window-fa.md) - - [管理系统窗口(Stage模型)](windowmanager/system-window-stage.md) - - 屏幕属性 - - [屏幕属性开发概述](windowmanager/display-overview.md) - - [屏幕属性开发指导](windowmanager/display-guidelines.md) - - 屏幕截图 - - [屏幕截图开发概述](windowmanager/screenshot-overview.md) - - [屏幕截图开发指导](windowmanager/screenshot-guidelines.md) + - [窗口开发概述](windowmanager/window-overview.md) + - [管理应用窗口(Stage模型)](windowmanager/application-window-stage.md) + - [管理应用窗口(FA模型)](windowmanager/application-window-fa.md) + - [管理系统窗口(Stage模型)](windowmanager/system-window-stage.md) - WebGL - [WebGL开发概述](webgl/webgl-overview.md) - [WebGL开发指导](webgl/webgl-guidelines.md) diff --git a/zh-cn/application-dev/windowmanager/Readme-CN.md b/zh-cn/application-dev/windowmanager/Readme-CN.md index fff76b863d6b9198dec861f7cffaf7e9025009d2..0ebc186a333645c3e683360f1a2c8eaf1967ad68 100644 --- a/zh-cn/application-dev/windowmanager/Readme-CN.md +++ b/zh-cn/application-dev/windowmanager/Readme-CN.md @@ -1,16 +1,6 @@ # 窗口管理 -- 窗口 - - - [窗口开发概述](window-overview.md) - - [管理应用窗口(Stage模型)](application-window-stage.md) - - [管理应用窗口(FA模型)](application-window-fa.md) - - [管理系统窗口(仅Stage模型支持)](system-window-stage.md) - -- 屏幕属性 - - [屏幕属性开发概述](display-overview.md) - - [屏幕属性开发指导](display-guidelines.md) - -- 屏幕截图 - - [屏幕截图开发概述](screenshot-overview.md) - - [屏幕截图开发指导](screenshot-guidelines.md) \ No newline at end of file +- [窗口开发概述](window-overview.md) +- [管理应用窗口(Stage模型)](application-window-stage.md) +- [管理应用窗口(FA模型)](application-window-fa.md) +- [管理系统窗口(仅Stage模型支持)](system-window-stage.md) \ No newline at end of file diff --git a/zh-cn/application-dev/windowmanager/display-guidelines.md b/zh-cn/application-dev/windowmanager/display-guidelines.md deleted file mode 100644 index 2a6d06e7b18673a904570a55fbf63d6fb1835b07..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/windowmanager/display-guidelines.md +++ /dev/null @@ -1,28 +0,0 @@ -# 屏幕属性开发指导 - -## 场景介绍 - -应用通过调用屏幕接口获取默认Display或者所有Display的属性。 - -## 接口说明 - -完整版的接口定义请参考API接口说明文件:[屏幕属性](../reference/apis/js-apis-display.md)。 - -## 开发步骤 - -通过`getDefaultDisplay(): Promise`来获取当前默认的`Display`对象,具体代码示例可参考: - -```js -import display from '@ohos.display' // 导入模块 - -let disp; // disp用来保存默认Display -display.getDefaultDisplay().then((disp) => { - console.log('display.getDefaultDisplay success, display :' + JSON.stringify(disp)); -}, (err) => { - console.log('display.getDefaultDisplay failed, error : ' + JSON.stringify(err)); -}) -``` -## 相关实例 -针对屏幕属性开发,有以下相关实例可供参考: -- [`Screen`:屏幕属性(eTS)(API8)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/device/Screen) - diff --git a/zh-cn/application-dev/windowmanager/display-overview.md b/zh-cn/application-dev/windowmanager/display-overview.md deleted file mode 100644 index 8c80828fc20c4e694ca92a6922e2afa906f7ec36..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/windowmanager/display-overview.md +++ /dev/null @@ -1,7 +0,0 @@ -# 屏幕属性开发概述 - -屏幕具有显示应用窗口布局的能力,屏幕属性包括:屏幕id号、屏幕名称、屏幕启用标识、屏幕状态、屏幕刷新率、屏幕旋转角度、屏幕宽度、屏幕高度、屏幕像素密度、屏幕字体缩放因子和每英寸屏幕的确切物理像素值。 - -## 基本概念 - -`Display`:Display指的是对应用可见的屏幕,这是一种抽象的屏幕概念,与真实的物理屏幕不同,可作为窗口容器。 diff --git a/zh-cn/application-dev/windowmanager/screenshot-guidelines.md b/zh-cn/application-dev/windowmanager/screenshot-guidelines.md deleted file mode 100644 index 9a60b348166899094fb1e2e685ab02f4e42d8535..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/windowmanager/screenshot-guidelines.md +++ /dev/null @@ -1,40 +0,0 @@ -# 屏幕截图开发指导 - -## 场景介绍 - -指定显示设备进行特定参数的屏幕截图。 - -## 接口说明 - -完整版的接口定义请参考API接口说明文件:[屏幕截图](../reference/apis/js-apis-screenshot.md)。 - -## 开发步骤 - -通过接口`save(options?: ScreenshotOptions): Promise`进行屏幕截图。其中`options`为预定义的截屏参数,如果没有输入`options`,则使用默认截取整屏,具体代码示例可参考: - -```js -import screenshot from '@ohos.screenshot' // 导入模块 - -// 设置屏幕截图参数 -let screenshotOps = { - "screenRect": { - "left": 200, - "top": 100, - "width": 200, - "height": 200}, - "imageSize": { - "width": 300, - "height": 300}, - "rotation": 0 -}; - -screenshot.save(screenshotOps).then((image) => { - console.log('screenshot.save success, screenshot image :' + JSON.stringify(image)); -}, (err) => { - console.log('screenshot.save failed, error : ' + JSON.stringify(err)); -}) -``` -## 相关实例 -针对屏幕截图开发,有以下相关实例可供参考: -- [`Screenshot`:屏幕截图(eTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/Basic/Screenshot) - diff --git a/zh-cn/application-dev/windowmanager/screenshot-overview.md b/zh-cn/application-dev/windowmanager/screenshot-overview.md deleted file mode 100644 index ba051123b1b6d135feec750fe8b16e33f7cb691d..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/windowmanager/screenshot-overview.md +++ /dev/null @@ -1,7 +0,0 @@ -# 屏幕截图开发概述 - -提供指定显示设备下特定参数的屏幕截图能力。 - -## 基本概念 - -`screenshot`:提供屏幕截图能力。