文件最后提交记录最后更新时间
!757 RQ-[Demo&应用子系统]【OpenHarmony】新增分布式备忘录 * update code * update code * update code * update code * update code * add DistributedNote * DistributedNote * add DistributedNote 3 年前
!999 编译问题增加替换FULL SDK说明 * update readme 3 年前
!1023 [翻译完成】#I5CJ7E * update docs 3 年前
!1023 [翻译完成】#I5CJ7E * update docs 3 年前
!1116 根目录 Readme 更新,输入法应用适配编译,ServiceExtAbility权限问题 * update README del ServiceExtAbility permission and update kika 3 年前
!757 RQ-[Demo&应用子系统]【OpenHarmony】新增分布式备忘录 * update code * update code * update code * update code * update code * add DistributedNote * DistributedNote * add DistributedNote 3 年前
!757 RQ-[Demo&应用子系统]【OpenHarmony】新增分布式备忘录 * update code * update code * update code * update code * update code * add DistributedNote * DistributedNote * add DistributedNote 3 年前
!832 适配901版本,并修复在64位系统测试的bug * update * update readme * update * update readme * adapter to IDE901 3 年前
README.md

Distributed Notepad

Introduction

This sample shows how to implement a simple distributed Notepad using distributed data objects in eTS. The display effect is as follows:

home

Concepts

Distributed data object: You can synchronize data between devices on a network by configuring distributed data objects with the same session ID for these devices. When a distributed object is modified, the peer device can listen for data changes and obtain new data.

Required Permissions

ohos.permission.DISTRIBUTED_DATASYNC

Usage

  1. Start the app, touch the button in the upper right corner, and select the device to connect. After the connection is successful, the home screens of the two devices are displayed in green. Each time you connect to another device, the notes will be cleared.

  2. To add a note, touch the Add button, edit the title and note content, mark color, and touch the Submit button.

  3. To clear all notes, touch the Clear button.

  4. To modify a note, touch the note, modify the note content, and touch Submit.

  5. The operations performed in steps 2, 3, and 4 are synchronized to the connected device.

Constraints

  • This sample can only be run on standard-system devices.

  • This sample is based on the stage model, which is supported from API version 9.

  • DevEco Studio 3.0 Beta3 (Build version: 3.0.0.901, built on May 30, 2022) must be used.