Name Date Size

..25-Oct-20244 KiB

.gitignoreH A D25-Oct-2024119

AppScope/H25-Oct-20244 KiB

build-profile.json5H A D25-Oct-20241.2 KiB

entry/H25-Oct-20244 KiB

hvigor/H25-Oct-20244 KiB

hvigorfile.tsH A D25-Oct-2024234

hvigorwH A D25-Oct-20242.2 KiB

hvigorw.batH A D25-Oct-20241.5 KiB

oh-package.json5H A D25-Oct-2024885

ohosTest.mdH A D25-Oct-20241.1 KiB

README.MDH A D25-Oct-20243.9 KiB

README_zh.mdH A D25-Oct-20243.5 KiB

screenshots/device/H25-Oct-20244 KiB

README.MD

1# Example ArkTS Guide Document
2
3### Introduction
4
5This example uses the [ArkTS Guide Document]( https://gitee.com/openharmony/docs/tree/master/zh-cn/application-dev/arkts-utils )The development examples of various scenarios in the project are presented to help developers better understand the various capabilities provided by ArkTS and make reasonable use of them. The detailed description of the code displayed in this project can be found in the following link:
6
71. [Shared module development guidance](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/arkts-sendable-module.md).
82. [CPU intensive task development guidance(TaskPool and Worker)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/cpu-intensive-task-development.md).
93. [I/O intensive task development guide(TaskPool)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/io-intensive-task-development.md).
104. [Single I/O task development guidance(Promise and async/await)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/single-io-development.md).
115. [Synchronous task development guidance(TaskPool and Worker)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/sync-task-development.md).
126. [Overview of Asynchronous Concurrency(Promise and async/await)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/async-concurrency-overview.md).
13
14### Effect preview
15
16|Homepage | Dropdown options for selecting various scenarios | Immediate feedback on execution and results|
17|-------------------------------------|-------------------------------------|-----------------------|
18| ![](screenshots/device/image1.jpeg) | ![](screenshots/device/image2.jpeg) | ![](screenshots/device/image3.jpeg) |
19
20### Instructions for use
21
221. On the main interface, you can click on the dropdown option and select the scene that needs to be executed.
23
242. Select the scenario that needs to be executed and click the * * Execute this Test * * button below to start executing.
25
263. The execution result will be immediately feedback above the button.
27
28### Engineering Catalog
29
30```
31entry/src/main/ets/
32|---entryability
33|---managers
34|   |---arkts-sendable-module.ets                       // sample code for shared modules
35|   |---async-concurrency-overview.ets                  // asynchronous example code
36|   |---cpu-intensive-task.ets                       // example code for intensive tasks
37|   |---file-write.ets                       // sample code for file read and write implementation
38|   |---Handle.ets                       // sample code for synchronizing task data definition
39|   |---io-intensive-task.ets                // IO intensive example code
40|   |---manager.ets                       // summarize and call the functions of each module
41|   |---sharedModule.ets                       // sample code for defining shared module data
42|   |---single-io-development.ets              // single IO Example Code
43|   |---sync-task-development.ets                       // sample code for synchronization task
44|---pages
45|   |---Index.ets                       // 应用页面
46```
47
48### Related permissions
49
50Not involved.
51
52### Dependency
53
54Not involved.
55
56### Constraints and limitations
571. This example only supports running on standard systems and supports devices such as RK3568.
58
592. This example is a Stage model that supports API12 version SDK, version number: 5.0.0.26, and image version number: OpenHarmony_5.0.0.27.
60
613. This example requires DevEco Studio NEXT Developer Preview2 (Build Version: 4.1.3.700, build on March 19, 2024) and above to compile and run.
62
63### Download
64
65To download this project separately, execute the following command:
66
67````
68git init
69git config core.sparsecheckout true
70echo code/DocsSample/ArkTSUtilsDocModule/ > .git/info/sparse-checkout
71git remote add origin https://gitee.com/openharmony/applications_app_samples.git
72git pull origin master
73````