• Home
Name Date Size #Lines LOC

..--

AppScope/12-May-2024-3734

entry/12-May-2024-1,9281,640

screenshots/device/12-May-2024-

.gitignoreD12-May-202496 77

README.mdD12-May-20241.6 KiB3719

README_zh.mdD12-May-20241.4 KiB3619

build-profile.json5D12-May-20241 KiB4241

hvigorfile.jsD12-May-2024168 21

package.jsonD12-May-2024380 1918

README.md

1# Window Extension Ability
2
3### Introduction
4
5This sample simulates the **Setting** app, where you can touch the menu bar to go to the details page.
6
7In this sample, the [Window Extension Ability](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-application-WindowExtensionAbility.md) is used to set abilities, and [AbilityComponent](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/arkui-ts/ts-container-ability-component.md) is used to load abilities.
8
9### Usage
10
111. In portrait mode, touch the **Setting** menu bar on the left. The details page is displayed.
12
132. In landscape mode, touch the **Setting** menu bar on the left. The details page is displayed on the right.
14
15### Preview
16
17![](screenshots/device/en/index.png) ![](screenshots/device/en/wlan.png)
18![](screenshots/device/en/bluetooth.png) ![](screenshots/device/en/mobileData.png)
19
20### Required Permissions
21
22N/A
23
24### Dependency
25
26N/A
27
28### Constraints
29
301. This sample can only be run on standard-system devices that use the Rockchip RK3568 chip.
31
322. This sample demonstrates the stage model, which supports only the SDK of API version 9 (SDK version: 3.2.6.3 Beta2).
33
343. DevEco Studio 3.0 Beta4 (Build version: 3.0.0.992, built on July 14, 2022) must be used.
35
364. **WindowExtensionAbility** and **AbilityComponent** are system APIs and require the use of the Full SDK. To use the Full SDK, you must manually obtain it from the mirror and switch to it in DevEco Studio. For details, see [Guide to Switching to Full SDK](https://gitee.com/openharmony/docs/blob/master/en/application-dev/quick-start/full-sdk-switch-guide.md).
37

README_zh.md

1# 窗口扩展应用
2
3### 介绍
4
5本示例仿设置应用,实现点击设置菜单栏,跳转或加载详情页面。
6
7本示例通过 [窗口扩展能力](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-application-WindowExtensionAbility.md) 设置不同Ability,使用 [AbilityComponent](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-container-ability-component.md) 组件加载各个Ability。
8
9使用说明:
10
111.竖屏模式下点击左侧设置菜单栏,跳转详情页面。
12
132.横屏模式下点击左侧设置菜单栏,右侧显示详情页面。
14
15### 效果预览
16
17![](screenshots/device/zh/index.png) ![](screenshots/device/zh/wlan.png)
18![](screenshots/device/zh/bluetooth.png) ![](screenshots/device/zh/mobileData.png)
19
20### 相关权限
21
22不涉及。
23
24### 依赖
25
26不涉及。
27
28### 约束与限制
29
301.本示例仅支持标准系统上运行,支持设备:支持RK3568。
31
322.本示例仅支持API version 9版本SDK,版本号:3.2.10.6。
33
343.本示例需要使用DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100)及以上才可编译运行。
35
364.本示例使用的WindowExtensionAbility、AbilityComponent均为系统接口,需要使用Full SDK手动从镜像站点获取,并在DevEco Studio中替换,具体操作可参考[替换指南](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md)