1e41f4b71Sopenharmony_ci# Pasteboard Subsystem Changelog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciOpenHarmony 4.0.3.2 has the following changes in the APIs of the pasteboard subsystem:
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci## cl.pasteboard.1 convertToTextV9 API Change
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ciRenamed **convertToTextV9** **toPlainText()** and changed the API from asynchronous to synchronous.
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**Change Impact**
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciApplications developed using the **convertToTextV9** API in versions earlier than OpenHarmony 4.0.3.3 cannot be used in OpenHarmony 4.0.3.3 and later versions.
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**Key API/Component Changes**
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci- Involved APIs:
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci  function convertToTextV9
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci- Before change:
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci  ```ts
22e41f4b71Sopenharmony_ci  convertToTextV9(callback: AsyncCallback<string>): void;
23e41f4b71Sopenharmony_ci  convertToTextV9(): Promise<string>;
24e41f4b71Sopenharmony_ci  ```
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ci- After change:
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ci  ```ts
29e41f4b71Sopenharmony_ci  toPlainText(): string;
30e41f4b71Sopenharmony_ci  ```
31e41f4b71Sopenharmony_ci
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ci**Adaptation Guide**
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ciReplace **convertToTextV9**, an asynchronous API, with **toPlainText**, a synchronous API.
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ci## cl.pasteboard.2 ShareOption Enum Name Change
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ciChanged the enum names of **ShareOption** from UpperCamelCase to all caps.
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ci**Change Impact**
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ciApplications developed using the **InApp/LocalDevice/CrossDevice** attributes in versions earlier than OpenHarmony 4.0.3.3 cannot be used in OpenHarmony 4.0.3.3 and later versions.
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci**Key API/Component Changes**
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ciShareOption<sup>9+</sup>
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ciBefore change:
50e41f4b71Sopenharmony_ci| Name| Value| Description               |
51e41f4b71Sopenharmony_ci| ---- |---|-------------------|
52e41f4b71Sopenharmony_ci| InApp | 0 | Only intra-application pasting is allowed.     |
53e41f4b71Sopenharmony_ci| LocalDevice | 1 | Paste is allowed in any application on the local device.|
54e41f4b71Sopenharmony_ci| CrossDevice | 2 | Paste is allowed in any application across devices. |
55e41f4b71Sopenharmony_ci
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ciAfter change:
58e41f4b71Sopenharmony_ci| Name| Value| Description               |
59e41f4b71Sopenharmony_ci| ---- |---|-------------------|
60e41f4b71Sopenharmony_ci| INAPP | 0 | Only intra-application pasting is allowed.     |
61e41f4b71Sopenharmony_ci| LOCALDEVICE | 1 | Paste is allowed in any application on the local device.|
62e41f4b71Sopenharmony_ci| CROSSDEVICE | 2 | Paste is allowed in any application across devices. |
63e41f4b71Sopenharmony_ci
64e41f4b71Sopenharmony_ci**Adaptation Guide**
65e41f4b71Sopenharmony_ci
66e41f4b71Sopenharmony_ciPerform adaptation based on the new semantics.
67