16e7c69efSopenharmony_ci# Distributed Notepad 26e7c69efSopenharmony_ci 36e7c69efSopenharmony_ci### Introduction 46e7c69efSopenharmony_ci 56e7c69efSopenharmony_ciThis sample shows how to implement a simple distributed Notepad using distributed data objects in eTS. The display effect is as follows: 66e7c69efSopenharmony_ci 76e7c69efSopenharmony_ci 86e7c69efSopenharmony_ci 96e7c69efSopenharmony_ci### Concepts 106e7c69efSopenharmony_ci 116e7c69efSopenharmony_ciDistributed 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. 126e7c69efSopenharmony_ci 136e7c69efSopenharmony_ci### Required Permissions 146e7c69efSopenharmony_ci 156e7c69efSopenharmony_ciohos.permission.DISTRIBUTED_DATASYNC 166e7c69efSopenharmony_ci 176e7c69efSopenharmony_ci### Usage 186e7c69efSopenharmony_ci 196e7c69efSopenharmony_ci1. 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. 206e7c69efSopenharmony_ci 216e7c69efSopenharmony_ci2. To add a note, touch the **Add** button, edit the title and note content, mark color, and touch the **Submit** button. 226e7c69efSopenharmony_ci 236e7c69efSopenharmony_ci3. To clear all notes, touch the **Clear** button. 246e7c69efSopenharmony_ci 256e7c69efSopenharmony_ci4. To modify a note, touch the note, modify the note content, and touch **Submit**. 266e7c69efSopenharmony_ci 276e7c69efSopenharmony_ci5. The operations performed in steps 2, 3, and 4 are synchronized to the connected device. 286e7c69efSopenharmony_ci 296e7c69efSopenharmony_ci### Constraints 306e7c69efSopenharmony_ci 316e7c69efSopenharmony_ci- This sample can only be run on standard-system devices. 326e7c69efSopenharmony_ci 336e7c69efSopenharmony_ci- This sample is based on the stage model, which is supported from API version 9. 346e7c69efSopenharmony_ci 356e7c69efSopenharmony_ci- This sample requires DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) to compile and run. 36