@react-native-ohos/clipboard 1.16.3-rc.1 → 1.16.3-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,25 +1,25 @@
1
- /**
2
- * MIT License
3
- *
4
- * Copyright (C) 2025 Huawei Device Co., Ltd.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (C) 2025 Huawei Device Co., Ltd.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
25
  export * from './ts'
@@ -1,12 +1,12 @@
1
- {
2
- "license": "ISC",
3
- "types": "",
4
- "devDependencies": {},
5
- "name": "@react-native-ohos/clipboard",
6
- "version": "1.16.3-rc.1",
7
- "description": "",
8
- "main": "index.ets",
9
- "dependencies": {
10
- "@rnoh/react-native-openharmony": "file:../../example/node_modules/react-native-harmony/harmony/react_native_openharmony.har"
11
- }
12
- }
1
+ {
2
+ "license": "ISC",
3
+ "types": "",
4
+ "devDependencies": {},
5
+ "name": "@react-native-ohos/clipboard",
6
+ "version": "1.16.3-rc.2",
7
+ "description": "",
8
+ "main": "index.ets",
9
+ "dependencies": {
10
+ "@rnoh/react-native-openharmony": "file:../../example/node_modules/react-native-harmony/harmony/react_native_openharmony.har"
11
+ }
12
+ }
@@ -1,7 +1,7 @@
1
- cmake_minimum_required(VERSION 3.13)
2
- set(CMAKE_VERBOSE_MAKEFILE on)
3
-
4
- file(GLOB rnoh_clipboard_SRC CONFIGURE_DEPENDS *.cpp)
5
- add_library(rnoh_clipboard SHARED ${rnoh_clipboard_SRC})
6
- target_include_directories(rnoh_clipboard PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
1
+ cmake_minimum_required(VERSION 3.13)
2
+ set(CMAKE_VERBOSE_MAKEFILE on)
3
+
4
+ file(GLOB rnoh_clipboard_SRC CONFIGURE_DEPENDS *.cpp)
5
+ add_library(rnoh_clipboard SHARED ${rnoh_clipboard_SRC})
6
+ target_include_directories(rnoh_clipboard PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
7
7
  target_link_libraries(rnoh_clipboard PUBLIC rnoh)
@@ -1,58 +1,58 @@
1
- /**
2
- * MIT License
3
- *
4
- * Copyright (C) 2025 Huawei Device Co., Ltd.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- #ifndef CLIPBOARD_PACKAGE_H
26
- #define CLIPBOARD_PACKAGE_H
27
-
28
- #include "RNOH/Package.h"
29
- #include "RNCClipboardTurboModule.h"
30
-
31
- using namespace rnoh;
32
- using namespace facebook;
33
-
34
- class ClipboardTurboModuleFactoryDelegate : public TurboModuleFactoryDelegate {
35
- public:
36
- SharedTurboModule createTurboModule(Context ctx, const std::string &name) const override
37
- {
38
- if (name == "RNCClipboard") {
39
- return std::make_shared<RNCClipboardTurboModule>(ctx, name);
40
- }
41
- return nullptr;
42
- };
43
- };
44
-
45
- namespace rnoh {
46
-
47
- class ClipboardPackage : public Package {
48
- public:
49
- ClipboardPackage(Package::Context ctx) : Package(ctx) {}
50
-
51
- std::unique_ptr<TurboModuleFactoryDelegate> createTurboModuleFactoryDelegate() override
52
- {
53
- return std::make_unique<ClipboardTurboModuleFactoryDelegate>();
54
- }
55
- };
56
- } // namespace rnoh
57
-
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (C) 2025 Huawei Device Co., Ltd.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ #ifndef CLIPBOARD_PACKAGE_H
26
+ #define CLIPBOARD_PACKAGE_H
27
+
28
+ #include "RNOH/Package.h"
29
+ #include "RNCClipboardTurboModule.h"
30
+
31
+ using namespace rnoh;
32
+ using namespace facebook;
33
+
34
+ class ClipboardTurboModuleFactoryDelegate : public TurboModuleFactoryDelegate {
35
+ public:
36
+ SharedTurboModule createTurboModule(Context ctx, const std::string &name) const override
37
+ {
38
+ if (name == "RNCClipboard") {
39
+ return std::make_shared<RNCClipboardTurboModule>(ctx, name);
40
+ }
41
+ return nullptr;
42
+ };
43
+ };
44
+
45
+ namespace rnoh {
46
+
47
+ class ClipboardPackage : public Package {
48
+ public:
49
+ ClipboardPackage(Package::Context ctx) : Package(ctx) {}
50
+
51
+ std::unique_ptr<TurboModuleFactoryDelegate> createTurboModuleFactoryDelegate() override
52
+ {
53
+ return std::make_unique<ClipboardTurboModuleFactoryDelegate>();
54
+ }
55
+ };
56
+ } // namespace rnoh
57
+
58
58
  #endif
@@ -1,198 +1,198 @@
1
- /**
2
- * MIT License
3
- *
4
- * Copyright (C) 2025 Huawei Device Co., Ltd.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- #include "RNCClipboardTurboModule.h"
26
-
27
- using namespace rnoh;
28
- using namespace facebook;
29
-
30
- static jsi::Value _hostFunction_RNCClipboardTurboModule_getConstants(
31
- jsi::Runtime &rt,
32
- react::TurboModule & turboModule,
33
- const jsi::Value* args,
34
- size_t count)
35
- {
36
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).call(rt, "getConstants", args, count));
37
- }
38
-
39
- static jsi::Value _hostFunction_RNCClipboardTurboModule_getString(
40
- jsi::Runtime &rt,
41
- react::TurboModule & turboModule,
42
- const jsi::Value* args,
43
- size_t count)
44
- {
45
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "getString", args, count));
46
- }
47
-
48
- static jsi::Value _hostFunction_RNCClipboardTurboModule_getStrings(
49
- jsi::Runtime &rt,
50
- react::TurboModule & turboModule,
51
- const jsi::Value* args,
52
- size_t count)
53
- {
54
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "getStrings", args, count));
55
- }
56
-
57
- static jsi::Value _hostFunction_RNCClipboardTurboModule_setString(
58
- jsi::Runtime &rt,
59
- react::TurboModule & turboModule,
60
- const jsi::Value* args,
61
- size_t count)
62
- {
63
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).call(rt, "setString", args, count));
64
- }
65
-
66
- static jsi::Value _hostFunction_RNCClipboardTurboModule_hasString(
67
- jsi::Runtime &rt,
68
- react::TurboModule & turboModule,
69
- const jsi::Value* args,
70
- size_t count)
71
- {
72
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "hasString", args, count));
73
- }
74
-
75
- static jsi::Value _hostFunction_RNCClipboardTurboModule_hasNumber(
76
- jsi::Runtime &rt,
77
- react::TurboModule & turboModule,
78
- const jsi::Value* args,
79
- size_t count)
80
- {
81
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "hasNumber", args, count));
82
- }
83
-
84
- static jsi::Value _hostFunction_RNCClipboardTurboModule_getImagePNG(
85
- jsi::Runtime &rt,
86
- react::TurboModule & turboModule,
87
- const jsi::Value* args,
88
- size_t count)
89
- {
90
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "getImagePNG", args, count));
91
- }
92
-
93
- static jsi::Value _hostFunction_RNCClipboardTurboModule_getImageJPG(
94
- jsi::Runtime &rt,
95
- react::TurboModule & turboModule,
96
- const jsi::Value* args,
97
- size_t count)
98
- {
99
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "getImageJPG", args, count));
100
- }
101
-
102
- static jsi::Value _hostFunction_RNCClipboardTurboModule_setImage(
103
- jsi::Runtime &rt,
104
- react::TurboModule & turboModule,
105
- const jsi::Value* args,
106
- size_t count)
107
- {
108
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).call(rt, "setImage", args, count));
109
- }
110
-
111
- static jsi::Value _hostFunction_RNCClipboardTurboModule_getImage(
112
- jsi::Runtime &rt,
113
- react::TurboModule & turboModule,
114
- const jsi::Value* args,
115
- size_t count)
116
- {
117
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "getImage", args, count));
118
- }
119
-
120
- static jsi::Value _hostFunction_RNCClipboardTurboModule_setStrings(
121
- jsi::Runtime &rt,
122
- react::TurboModule & turboModule,
123
- const jsi::Value* args,
124
- size_t count)
125
- {
126
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).call(rt, "setStrings", args, count));
127
- }
128
-
129
- static jsi::Value _hostFunction_RNCClipboardTurboModule_hasImage(
130
- jsi::Runtime &rt,
131
- react::TurboModule & turboModule,
132
- const jsi::Value* args,
133
- size_t count)
134
- {
135
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "hasImage", args, count));
136
- }
137
-
138
- static jsi::Value _hostFunction_RNCClipboardTurboModule_hasURL(
139
- jsi::Runtime &rt,
140
- react::TurboModule & turboModule,
141
- const jsi::Value* args,
142
- size_t count)
143
- {
144
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "hasURL", args, count));
145
- }
146
-
147
- static jsi::Value _hostFunction_RNCClipboardTurboModule_hasWebURL(
148
- jsi::Runtime &rt,
149
- react::TurboModule & turboModule,
150
- const jsi::Value* args,
151
- size_t count)
152
- {
153
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "hasWebURL", args, count));
154
- }
155
-
156
- static jsi::Value _hostFunction_RNCClipboardTurboModule_addListener(
157
- jsi::Runtime &rt,
158
- react::TurboModule & turboModule,
159
- const jsi::Value* args,
160
- size_t count)
161
- {
162
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).call(rt, "addListener", args, count));
163
- }
164
-
165
- static jsi::Value _hostFunction_RNCClipboardTurboModule_removeListeners(
166
- jsi::Runtime &rt,
167
- react::TurboModule & turboModule,
168
- const jsi::Value* args,
169
- size_t count)
170
- {
171
- return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).call(rt, "removeListeners", args, count));
172
- }
173
-
174
- RNCClipboardTurboModule::RNCClipboardTurboModule(const ArkTSTurboModule::Context ctx, const std::string name)
175
- : ArkTSTurboModule(ctx, name)
176
- {
177
- methodMap_["getConstants"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_getConstants};
178
- methodMap_["getString"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_getString};
179
- methodMap_["getStrings"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_getStrings};
180
-
181
- methodMap_["setString"]= MethodMetadata{1, _hostFunction_RNCClipboardTurboModule_setString};
182
- methodMap_["hasString"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_hasString};
183
-
184
- methodMap_["hasNumber"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_hasNumber};
185
- methodMap_["getImagePNG"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_getImagePNG};
186
- methodMap_["getImageJPG"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_getImageJPG};
187
-
188
- methodMap_["setImage"]= MethodMetadata{1, _hostFunction_RNCClipboardTurboModule_setImage};
189
- methodMap_["getImage"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_getImage};
190
-
191
- methodMap_["setStrings"]= MethodMetadata{1, _hostFunction_RNCClipboardTurboModule_setStrings};
192
- methodMap_["hasImage"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_hasImage};
193
- methodMap_["hasURL"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_hasURL};
194
- methodMap_["hasWebURL"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_hasWebURL};
195
-
196
- methodMap_["addListener"]= MethodMetadata{1, _hostFunction_RNCClipboardTurboModule_addListener};
197
- methodMap_["removeListeners"]= MethodMetadata{1, _hostFunction_RNCClipboardTurboModule_removeListeners};
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (C) 2025 Huawei Device Co., Ltd.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ #include "RNCClipboardTurboModule.h"
26
+
27
+ using namespace rnoh;
28
+ using namespace facebook;
29
+
30
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_getConstants(
31
+ jsi::Runtime &rt,
32
+ react::TurboModule & turboModule,
33
+ const jsi::Value* args,
34
+ size_t count)
35
+ {
36
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).call(rt, "getConstants", args, count));
37
+ }
38
+
39
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_getString(
40
+ jsi::Runtime &rt,
41
+ react::TurboModule & turboModule,
42
+ const jsi::Value* args,
43
+ size_t count)
44
+ {
45
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "getString", args, count));
46
+ }
47
+
48
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_getStrings(
49
+ jsi::Runtime &rt,
50
+ react::TurboModule & turboModule,
51
+ const jsi::Value* args,
52
+ size_t count)
53
+ {
54
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "getStrings", args, count));
55
+ }
56
+
57
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_setString(
58
+ jsi::Runtime &rt,
59
+ react::TurboModule & turboModule,
60
+ const jsi::Value* args,
61
+ size_t count)
62
+ {
63
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).call(rt, "setString", args, count));
64
+ }
65
+
66
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_hasString(
67
+ jsi::Runtime &rt,
68
+ react::TurboModule & turboModule,
69
+ const jsi::Value* args,
70
+ size_t count)
71
+ {
72
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "hasString", args, count));
73
+ }
74
+
75
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_hasNumber(
76
+ jsi::Runtime &rt,
77
+ react::TurboModule & turboModule,
78
+ const jsi::Value* args,
79
+ size_t count)
80
+ {
81
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "hasNumber", args, count));
82
+ }
83
+
84
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_getImagePNG(
85
+ jsi::Runtime &rt,
86
+ react::TurboModule & turboModule,
87
+ const jsi::Value* args,
88
+ size_t count)
89
+ {
90
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "getImagePNG", args, count));
91
+ }
92
+
93
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_getImageJPG(
94
+ jsi::Runtime &rt,
95
+ react::TurboModule & turboModule,
96
+ const jsi::Value* args,
97
+ size_t count)
98
+ {
99
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "getImageJPG", args, count));
100
+ }
101
+
102
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_setImage(
103
+ jsi::Runtime &rt,
104
+ react::TurboModule & turboModule,
105
+ const jsi::Value* args,
106
+ size_t count)
107
+ {
108
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).call(rt, "setImage", args, count));
109
+ }
110
+
111
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_getImage(
112
+ jsi::Runtime &rt,
113
+ react::TurboModule & turboModule,
114
+ const jsi::Value* args,
115
+ size_t count)
116
+ {
117
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "getImage", args, count));
118
+ }
119
+
120
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_setStrings(
121
+ jsi::Runtime &rt,
122
+ react::TurboModule & turboModule,
123
+ const jsi::Value* args,
124
+ size_t count)
125
+ {
126
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).call(rt, "setStrings", args, count));
127
+ }
128
+
129
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_hasImage(
130
+ jsi::Runtime &rt,
131
+ react::TurboModule & turboModule,
132
+ const jsi::Value* args,
133
+ size_t count)
134
+ {
135
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "hasImage", args, count));
136
+ }
137
+
138
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_hasURL(
139
+ jsi::Runtime &rt,
140
+ react::TurboModule & turboModule,
141
+ const jsi::Value* args,
142
+ size_t count)
143
+ {
144
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "hasURL", args, count));
145
+ }
146
+
147
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_hasWebURL(
148
+ jsi::Runtime &rt,
149
+ react::TurboModule & turboModule,
150
+ const jsi::Value* args,
151
+ size_t count)
152
+ {
153
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).callAsync(rt, "hasWebURL", args, count));
154
+ }
155
+
156
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_addListener(
157
+ jsi::Runtime &rt,
158
+ react::TurboModule & turboModule,
159
+ const jsi::Value* args,
160
+ size_t count)
161
+ {
162
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).call(rt, "addListener", args, count));
163
+ }
164
+
165
+ static jsi::Value _hostFunction_RNCClipboardTurboModule_removeListeners(
166
+ jsi::Runtime &rt,
167
+ react::TurboModule & turboModule,
168
+ const jsi::Value* args,
169
+ size_t count)
170
+ {
171
+ return jsi::Value(static_cast<ArkTSTurboModule &> (turboModule).call(rt, "removeListeners", args, count));
172
+ }
173
+
174
+ RNCClipboardTurboModule::RNCClipboardTurboModule(const ArkTSTurboModule::Context ctx, const std::string name)
175
+ : ArkTSTurboModule(ctx, name)
176
+ {
177
+ methodMap_["getConstants"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_getConstants};
178
+ methodMap_["getString"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_getString};
179
+ methodMap_["getStrings"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_getStrings};
180
+
181
+ methodMap_["setString"]= MethodMetadata{1, _hostFunction_RNCClipboardTurboModule_setString};
182
+ methodMap_["hasString"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_hasString};
183
+
184
+ methodMap_["hasNumber"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_hasNumber};
185
+ methodMap_["getImagePNG"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_getImagePNG};
186
+ methodMap_["getImageJPG"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_getImageJPG};
187
+
188
+ methodMap_["setImage"]= MethodMetadata{1, _hostFunction_RNCClipboardTurboModule_setImage};
189
+ methodMap_["getImage"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_getImage};
190
+
191
+ methodMap_["setStrings"]= MethodMetadata{1, _hostFunction_RNCClipboardTurboModule_setStrings};
192
+ methodMap_["hasImage"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_hasImage};
193
+ methodMap_["hasURL"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_hasURL};
194
+ methodMap_["hasWebURL"]= MethodMetadata{0, _hostFunction_RNCClipboardTurboModule_hasWebURL};
195
+
196
+ methodMap_["addListener"]= MethodMetadata{1, _hostFunction_RNCClipboardTurboModule_addListener};
197
+ methodMap_["removeListeners"]= MethodMetadata{1, _hostFunction_RNCClipboardTurboModule_removeListeners};
198
198
  }