| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| entry/ | 12-May-2024 | - | 1,500 | 1,407 | ||
| screenshots/devices/ | 12-May-2024 | - | ||||
| .gitignore | D | 12-May-2024 | 121 | 8 | 8 | |
| README.md | D | 12-May-2024 | 820 | 24 | 10 | |
| README_zh.md | D | 12-May-2024 | 1.6 KiB | 33 | 17 | |
| build-profile.json5 | D | 12-May-2024 | 1 KiB | 43 | 41 | |
| hvigorfile.js | D | 12-May-2024 | 174 | 2 | 1 | |
| package.json | D | 12-May-2024 | 373 | 18 | 18 |
README.md
1# Distributed Data Management 2 3 4 5### Introduction 6 7This sample shows how to use distributed data management with eTS, including creating a **KvManager** instance and transferring data across devices. 8 9### Usage 10 111. Adds two devices to the network. 12 132. On the home page of one device, touch the **Hop** button in the upper right corner. In the dialog box displayed, select the peer device to start the application on the peer device. 14 153. After the peer device is started, click + on the page to add a widget. You can touch **X** in the upper right corner of the widget to delete the widget. The data displayed on the two devices is the same. 16 174. When you perform operations on the peer device, the data displayed on the two devices is the same. 18 19 20 21### Constraints 22 23This sample can only be run on standard-system devices. 24
README_zh.md
1# 分布式数据管理 2 3### 简介 4 5本示例展示了在eTS中分布式数据管理的使用,包括KVManager对象实例的创建和KVStore数据流转的使用。实现效果如下: 6 7 8 9### 相关概念 10 11分布式数据管理:分布式数据管理为应用程序提供不同设备间数据库的分布式协同能力。通过调用分布式数据各个接口,应用程序可将数据保存到分布式数据库中,并可对分布式数据库中的数据进行增/删/改/查等各项操作。 12 13### 相关权限 14 15允许不同设备间的数据交换:ohos.permission.DISTRIBUTED_DATASYNC 16 17### 使用说明 18 191.两台设备组网。 20 212.在一台界面中点击右上角的流转按钮,在弹窗中选择对端设备拉起对端设备上的应用。 22 233.拉起对端设备后,在界面中点击"+"按钮新增笔记卡片,点击每个卡片右上角的"X"按钮可以删除此卡片,可以看到对端设备和当前设备界面数据保持一致。 24 254.操作对端设备,当前设备界面也会保持和对端设备界面显示一致。 26 27### 约束与限制 28 291.本示例仅支持标准系统上运行。 30 312.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。 32 333.本示例需要使用@ohos.distributedHardware.deviceManager系统权限的系统接口。使用Full SDK时需要手动从镜像站点获取,并在DevEco Studio中替换,具体操作可参考[替换指南](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md)。