# pasteBoardService ## Introduction As a functional component of the stray subsystem, the clipboard service provides the ability to manage the system clipboard and supports the system copy and paste functions. The system clipboard supports package text, hypertext, URIs and other content operations. **picture 1** Subsystem Architecture Diagram ![](figures/subsystem_architecture.png "Subsystem architecture") The clipboard service provides functions that support application developers to use clipboard-related services conveniently and efficiently. Its main components include clipboard management client and clipboard service. The clipboard management client is responsible for clipboard interface management, providing clipboard northbound JS API to applications; creating clipboard data on the application framework side, requesting clipboard SA to perform clipboard creation, deletion, query, text conversion, configuration, etc. The clipboard service is responsible for clipboard event management, manages the life cycle of clipboard SA (startup, destruction, multi-user, etc.); executes application requests, notifies clipboard data management, and returns the results to the clipboard management client. ## Directory Structure ``` /foundation/distributeddatamgr/pasteboard ├── etc # Configuration files for the processes contained in the component ├── figures # Framework diagram ├── framework # innerKit interface ├── interfaces # The interface code provided by the component externally │ └── kits # Interface provided to the application ├── profile # Configuration files for system services contained in the component ├── services # clipboard service implementation │ └── core # Core code implementation │ └── test # native test code │ └── zidl # Cross-process communication code implementation ├── utils # Tests or services use mocked data └──README.md # Instructions for use ``` ## illustrate ### Interface Description **list 1** PasteBoard open main method
Callback called when the content of the pasteboard is closed |
|
setPasteData(data: PasteData, callback: AsyncCallback<void>:void; |
|
Timestamp indicating when the data was written to the system clipboard. |
||