@react-native-vector-icons/common 11.0.0-alpha.1 → 11.0.0-alpha.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.
Files changed (38) hide show
  1. package/package.json +4 -2
  2. package/android/generated/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeVectorIconsSpec.java +0 -42
  3. package/android/generated/android/app/build/generated/source/codegen/jni/CMakeLists.txt +0 -49
  4. package/android/generated/android/app/build/generated/source/codegen/jni/RNVectorIconsSpec-generated.cpp +0 -38
  5. package/android/generated/android/app/build/generated/source/codegen/jni/RNVectorIconsSpec.h +0 -31
  6. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/ComponentDescriptors.cpp +0 -22
  7. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/ComponentDescriptors.h +0 -24
  8. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/EventEmitters.cpp +0 -16
  9. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/EventEmitters.h +0 -17
  10. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/Props.cpp +0 -19
  11. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/Props.h +0 -18
  12. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/RNVectorIconsSpecJSI-generated.cpp +0 -40
  13. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/RNVectorIconsSpecJSI.h +0 -76
  14. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/ShadowNodes.cpp +0 -17
  15. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/ShadowNodes.h +0 -23
  16. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/States.cpp +0 -16
  17. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/States.h +0 -19
  18. package/ios/generated/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec-generated.mm +0 -1881
  19. package/ios/generated/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h +0 -2321
  20. package/ios/generated/build/generated/ios/FBReactNativeSpecJSI-generated.cpp +0 -2785
  21. package/ios/generated/build/generated/ios/FBReactNativeSpecJSI.h +0 -7511
  22. package/ios/generated/build/generated/ios/RCTModulesConformingToProtocolsProvider.h +0 -18
  23. package/ios/generated/build/generated/ios/RCTModulesConformingToProtocolsProvider.mm +0 -33
  24. package/ios/generated/build/generated/ios/RNVectorIconsSpec/RNVectorIconsSpec-generated.mm +0 -36
  25. package/ios/generated/build/generated/ios/RNVectorIconsSpec/RNVectorIconsSpec.h +0 -58
  26. package/ios/generated/build/generated/ios/RNVectorIconsSpecJSI-generated.cpp +0 -40
  27. package/ios/generated/build/generated/ios/RNVectorIconsSpecJSI.h +0 -76
  28. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/ComponentDescriptors.cpp +0 -22
  29. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/ComponentDescriptors.h +0 -24
  30. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/EventEmitters.cpp +0 -16
  31. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/EventEmitters.h +0 -17
  32. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/Props.cpp +0 -19
  33. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/Props.h +0 -18
  34. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/RCTComponentViewHelpers.h +0 -18
  35. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/ShadowNodes.cpp +0 -17
  36. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/ShadowNodes.h +0 -23
  37. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/States.cpp +0 -16
  38. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/States.h +0 -19
@@ -1,2321 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleObjCpp
8
- *
9
- * We create an umbrella header (and corresponding implementation) here since
10
- * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
- * must have a single output. More files => more genrule()s => slower builds.
12
- */
13
-
14
- #ifndef __cplusplus
15
- #error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
16
- #endif
17
-
18
- // Avoid multiple includes of FBReactNativeSpec symbols
19
- #ifndef FBReactNativeSpec_H
20
- #define FBReactNativeSpec_H
21
-
22
- #import <Foundation/Foundation.h>
23
- #import <RCTRequired/RCTRequired.h>
24
- #import <RCTTypeSafety/RCTConvertHelpers.h>
25
- #import <RCTTypeSafety/RCTTypedModuleConstants.h>
26
- #import <React/RCTBridgeModule.h>
27
- #import <React/RCTCxxConvert.h>
28
- #import <React/RCTManagedPointer.h>
29
- #import <ReactCommon/RCTTurboModule.h>
30
- #import <optional>
31
- #import <vector>
32
-
33
-
34
- @protocol NativeAccessibilityInfoSpec <RCTBridgeModule, RCTTurboModule>
35
-
36
- - (void)isReduceMotionEnabled:(RCTResponseSenderBlock)onSuccess;
37
- - (void)isTouchExplorationEnabled:(RCTResponseSenderBlock)onSuccess;
38
- - (void)isAccessibilityServiceEnabled:(RCTResponseSenderBlock)onSuccess;
39
- - (void)setAccessibilityFocus:(double)reactTag;
40
- - (void)announceForAccessibility:(NSString *)announcement;
41
- - (void)getRecommendedTimeoutMillis:(double)mSec
42
- onSuccess:(RCTResponseSenderBlock)onSuccess;
43
-
44
- @end
45
- namespace facebook::react {
46
- /**
47
- * ObjC++ class for module 'NativeAccessibilityInfo'
48
- */
49
- class JSI_EXPORT NativeAccessibilityInfoSpecJSI : public ObjCTurboModule {
50
- public:
51
- NativeAccessibilityInfoSpecJSI(const ObjCTurboModule::InitParams &params);
52
- };
53
- } // namespace facebook::react
54
- namespace JS {
55
- namespace NativeAccessibilityManager {
56
- struct SpecSetAccessibilityContentSizeMultipliersJSMultipliers {
57
- std::optional<double> extraSmall() const;
58
- std::optional<double> small() const;
59
- std::optional<double> medium() const;
60
- std::optional<double> large() const;
61
- std::optional<double> extraLarge() const;
62
- std::optional<double> extraExtraLarge() const;
63
- std::optional<double> extraExtraExtraLarge() const;
64
- std::optional<double> accessibilityMedium() const;
65
- std::optional<double> accessibilityLarge() const;
66
- std::optional<double> accessibilityExtraLarge() const;
67
- std::optional<double> accessibilityExtraExtraLarge() const;
68
- std::optional<double> accessibilityExtraExtraExtraLarge() const;
69
-
70
- SpecSetAccessibilityContentSizeMultipliersJSMultipliers(NSDictionary *const v) : _v(v) {}
71
- private:
72
- NSDictionary *_v;
73
- };
74
- }
75
- }
76
-
77
- @interface RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers)
78
- + (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json;
79
- @end
80
- namespace JS {
81
- namespace NativeAccessibilityManager {
82
- struct SpecAnnounceForAccessibilityWithOptionsOptions {
83
- std::optional<bool> queue() const;
84
-
85
- SpecAnnounceForAccessibilityWithOptionsOptions(NSDictionary *const v) : _v(v) {}
86
- private:
87
- NSDictionary *_v;
88
- };
89
- }
90
- }
91
-
92
- @interface RCTCxxConvert (NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions)
93
- + (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions:(id)json;
94
- @end
95
- @protocol NativeAccessibilityManagerSpec <RCTBridgeModule, RCTTurboModule>
96
-
97
- - (void)getCurrentBoldTextState:(RCTResponseSenderBlock)onSuccess
98
- onError:(RCTResponseSenderBlock)onError;
99
- - (void)getCurrentGrayscaleState:(RCTResponseSenderBlock)onSuccess
100
- onError:(RCTResponseSenderBlock)onError;
101
- - (void)getCurrentInvertColorsState:(RCTResponseSenderBlock)onSuccess
102
- onError:(RCTResponseSenderBlock)onError;
103
- - (void)getCurrentReduceMotionState:(RCTResponseSenderBlock)onSuccess
104
- onError:(RCTResponseSenderBlock)onError;
105
- - (void)getCurrentPrefersCrossFadeTransitionsState:(RCTResponseSenderBlock)onSuccess
106
- onError:(RCTResponseSenderBlock)onError;
107
- - (void)getCurrentReduceTransparencyState:(RCTResponseSenderBlock)onSuccess
108
- onError:(RCTResponseSenderBlock)onError;
109
- - (void)getCurrentVoiceOverState:(RCTResponseSenderBlock)onSuccess
110
- onError:(RCTResponseSenderBlock)onError;
111
- - (void)setAccessibilityContentSizeMultipliers:(JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers &)JSMultipliers;
112
- - (void)setAccessibilityFocus:(double)reactTag;
113
- - (void)announceForAccessibility:(NSString *)announcement;
114
- - (void)announceForAccessibilityWithOptions:(NSString *)announcement
115
- options:(JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions &)options;
116
-
117
- @end
118
- namespace facebook::react {
119
- /**
120
- * ObjC++ class for module 'NativeAccessibilityManager'
121
- */
122
- class JSI_EXPORT NativeAccessibilityManagerSpecJSI : public ObjCTurboModule {
123
- public:
124
- NativeAccessibilityManagerSpecJSI(const ObjCTurboModule::InitParams &params);
125
- };
126
- } // namespace facebook::react
127
- namespace JS {
128
- namespace NativeActionSheetManager {
129
- struct SpecShowActionSheetWithOptionsOptions {
130
- NSString *title() const;
131
- NSString *message() const;
132
- std::optional<facebook::react::LazyVector<NSString *>> options() const;
133
- std::optional<facebook::react::LazyVector<double>> destructiveButtonIndices() const;
134
- std::optional<double> cancelButtonIndex() const;
135
- std::optional<double> anchor() const;
136
- std::optional<double> tintColor() const;
137
- std::optional<double> cancelButtonTintColor() const;
138
- NSString *userInterfaceStyle() const;
139
- std::optional<facebook::react::LazyVector<double>> disabledButtonIndices() const;
140
-
141
- SpecShowActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {}
142
- private:
143
- NSDictionary *_v;
144
- };
145
- }
146
- }
147
-
148
- @interface RCTCxxConvert (NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions)
149
- + (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions:(id)json;
150
- @end
151
- namespace JS {
152
- namespace NativeActionSheetManager {
153
- struct SpecShowShareActionSheetWithOptionsOptions {
154
- NSString *message() const;
155
- NSString *url() const;
156
- NSString *subject() const;
157
- std::optional<double> anchor() const;
158
- std::optional<double> tintColor() const;
159
- std::optional<double> cancelButtonTintColor() const;
160
- std::optional<facebook::react::LazyVector<NSString *>> excludedActivityTypes() const;
161
- NSString *userInterfaceStyle() const;
162
-
163
- SpecShowShareActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {}
164
- private:
165
- NSDictionary *_v;
166
- };
167
- }
168
- }
169
-
170
- @interface RCTCxxConvert (NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions)
171
- + (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions:(id)json;
172
- @end
173
- @protocol NativeActionSheetManagerSpec <RCTBridgeModule, RCTTurboModule>
174
-
175
- - (void)showActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions &)options
176
- callback:(RCTResponseSenderBlock)callback;
177
- - (void)showShareActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions &)options
178
- failureCallback:(RCTResponseSenderBlock)failureCallback
179
- successCallback:(RCTResponseSenderBlock)successCallback;
180
- - (void)dismissActionSheet;
181
-
182
- @end
183
- namespace facebook::react {
184
- /**
185
- * ObjC++ class for module 'NativeActionSheetManager'
186
- */
187
- class JSI_EXPORT NativeActionSheetManagerSpecJSI : public ObjCTurboModule {
188
- public:
189
- NativeActionSheetManagerSpecJSI(const ObjCTurboModule::InitParams &params);
190
- };
191
- } // namespace facebook::react
192
- namespace JS {
193
- namespace NativeAlertManager {
194
- struct Args {
195
- NSString *title() const;
196
- NSString *message() const;
197
- std::optional<facebook::react::LazyVector<id<NSObject>>> buttons() const;
198
- NSString *type() const;
199
- NSString *defaultValue() const;
200
- NSString *cancelButtonKey() const;
201
- NSString *destructiveButtonKey() const;
202
- NSString *preferredButtonKey() const;
203
- NSString *keyboardType() const;
204
- NSString *userInterfaceStyle() const;
205
-
206
- Args(NSDictionary *const v) : _v(v) {}
207
- private:
208
- NSDictionary *_v;
209
- };
210
- }
211
- }
212
-
213
- @interface RCTCxxConvert (NativeAlertManager_Args)
214
- + (RCTManagedPointer *)JS_NativeAlertManager_Args:(id)json;
215
- @end
216
- @protocol NativeAlertManagerSpec <RCTBridgeModule, RCTTurboModule>
217
-
218
- - (void)alertWithArgs:(JS::NativeAlertManager::Args &)args
219
- callback:(RCTResponseSenderBlock)callback;
220
-
221
- @end
222
- namespace facebook::react {
223
- /**
224
- * ObjC++ class for module 'NativeAlertManager'
225
- */
226
- class JSI_EXPORT NativeAlertManagerSpecJSI : public ObjCTurboModule {
227
- public:
228
- NativeAlertManagerSpecJSI(const ObjCTurboModule::InitParams &params);
229
- };
230
- } // namespace facebook::react
231
- namespace JS {
232
- namespace NativeAnimatedModule {
233
- struct EventMapping {
234
- facebook::react::LazyVector<NSString *> nativeEventPath() const;
235
- std::optional<double> animatedValueTag() const;
236
-
237
- EventMapping(NSDictionary *const v) : _v(v) {}
238
- private:
239
- NSDictionary *_v;
240
- };
241
- }
242
- }
243
-
244
- @interface RCTCxxConvert (NativeAnimatedModule_EventMapping)
245
- + (RCTManagedPointer *)JS_NativeAnimatedModule_EventMapping:(id)json;
246
- @end
247
- @protocol NativeAnimatedModuleSpec <RCTBridgeModule, RCTTurboModule>
248
-
249
- - (void)startOperationBatch;
250
- - (void)finishOperationBatch;
251
- - (void)createAnimatedNode:(double)tag
252
- config:(NSDictionary *)config;
253
- - (void)updateAnimatedNodeConfig:(double)tag
254
- config:(NSDictionary *)config;
255
- - (void)getValue:(double)tag
256
- saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
257
- - (void)startListeningToAnimatedNodeValue:(double)tag;
258
- - (void)stopListeningToAnimatedNodeValue:(double)tag;
259
- - (void)connectAnimatedNodes:(double)parentTag
260
- childTag:(double)childTag;
261
- - (void)disconnectAnimatedNodes:(double)parentTag
262
- childTag:(double)childTag;
263
- - (void)startAnimatingNode:(double)animationId
264
- nodeTag:(double)nodeTag
265
- config:(NSDictionary *)config
266
- endCallback:(RCTResponseSenderBlock)endCallback;
267
- - (void)stopAnimation:(double)animationId;
268
- - (void)setAnimatedNodeValue:(double)nodeTag
269
- value:(double)value;
270
- - (void)setAnimatedNodeOffset:(double)nodeTag
271
- offset:(double)offset;
272
- - (void)flattenAnimatedNodeOffset:(double)nodeTag;
273
- - (void)extractAnimatedNodeOffset:(double)nodeTag;
274
- - (void)connectAnimatedNodeToView:(double)nodeTag
275
- viewTag:(double)viewTag;
276
- - (void)disconnectAnimatedNodeFromView:(double)nodeTag
277
- viewTag:(double)viewTag;
278
- - (void)restoreDefaultValues:(double)nodeTag;
279
- - (void)dropAnimatedNode:(double)tag;
280
- - (void)addAnimatedEventToView:(double)viewTag
281
- eventName:(NSString *)eventName
282
- eventMapping:(JS::NativeAnimatedModule::EventMapping &)eventMapping;
283
- - (void)removeAnimatedEventFromView:(double)viewTag
284
- eventName:(NSString *)eventName
285
- animatedNodeTag:(double)animatedNodeTag;
286
- - (void)addListener:(NSString *)eventName;
287
- - (void)removeListeners:(double)count;
288
- - (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs;
289
-
290
- @end
291
- namespace facebook::react {
292
- /**
293
- * ObjC++ class for module 'NativeAnimatedModule'
294
- */
295
- class JSI_EXPORT NativeAnimatedModuleSpecJSI : public ObjCTurboModule {
296
- public:
297
- NativeAnimatedModuleSpecJSI(const ObjCTurboModule::InitParams &params);
298
- };
299
- } // namespace facebook::react
300
- namespace JS {
301
- namespace NativeAnimatedTurboModule {
302
- struct EventMapping {
303
- facebook::react::LazyVector<NSString *> nativeEventPath() const;
304
- std::optional<double> animatedValueTag() const;
305
-
306
- EventMapping(NSDictionary *const v) : _v(v) {}
307
- private:
308
- NSDictionary *_v;
309
- };
310
- }
311
- }
312
-
313
- @interface RCTCxxConvert (NativeAnimatedTurboModule_EventMapping)
314
- + (RCTManagedPointer *)JS_NativeAnimatedTurboModule_EventMapping:(id)json;
315
- @end
316
- @protocol NativeAnimatedTurboModuleSpec <RCTBridgeModule, RCTTurboModule>
317
-
318
- - (void)startOperationBatch;
319
- - (void)finishOperationBatch;
320
- - (void)createAnimatedNode:(double)tag
321
- config:(NSDictionary *)config;
322
- - (void)updateAnimatedNodeConfig:(double)tag
323
- config:(NSDictionary *)config;
324
- - (void)getValue:(double)tag
325
- saveValueCallback:(RCTResponseSenderBlock)saveValueCallback;
326
- - (void)startListeningToAnimatedNodeValue:(double)tag;
327
- - (void)stopListeningToAnimatedNodeValue:(double)tag;
328
- - (void)connectAnimatedNodes:(double)parentTag
329
- childTag:(double)childTag;
330
- - (void)disconnectAnimatedNodes:(double)parentTag
331
- childTag:(double)childTag;
332
- - (void)startAnimatingNode:(double)animationId
333
- nodeTag:(double)nodeTag
334
- config:(NSDictionary *)config
335
- endCallback:(RCTResponseSenderBlock)endCallback;
336
- - (void)stopAnimation:(double)animationId;
337
- - (void)setAnimatedNodeValue:(double)nodeTag
338
- value:(double)value;
339
- - (void)setAnimatedNodeOffset:(double)nodeTag
340
- offset:(double)offset;
341
- - (void)flattenAnimatedNodeOffset:(double)nodeTag;
342
- - (void)extractAnimatedNodeOffset:(double)nodeTag;
343
- - (void)connectAnimatedNodeToView:(double)nodeTag
344
- viewTag:(double)viewTag;
345
- - (void)disconnectAnimatedNodeFromView:(double)nodeTag
346
- viewTag:(double)viewTag;
347
- - (void)restoreDefaultValues:(double)nodeTag;
348
- - (void)dropAnimatedNode:(double)tag;
349
- - (void)addAnimatedEventToView:(double)viewTag
350
- eventName:(NSString *)eventName
351
- eventMapping:(JS::NativeAnimatedTurboModule::EventMapping &)eventMapping;
352
- - (void)removeAnimatedEventFromView:(double)viewTag
353
- eventName:(NSString *)eventName
354
- animatedNodeTag:(double)animatedNodeTag;
355
- - (void)addListener:(NSString *)eventName;
356
- - (void)removeListeners:(double)count;
357
- - (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs;
358
-
359
- @end
360
- namespace facebook::react {
361
- /**
362
- * ObjC++ class for module 'NativeAnimatedTurboModule'
363
- */
364
- class JSI_EXPORT NativeAnimatedTurboModuleSpecJSI : public ObjCTurboModule {
365
- public:
366
- NativeAnimatedTurboModuleSpecJSI(const ObjCTurboModule::InitParams &params);
367
- };
368
- } // namespace facebook::react
369
- namespace JS {
370
- namespace NativeAppState {
371
- struct Constants {
372
-
373
- struct Builder {
374
- struct Input {
375
- RCTRequired<NSString *> initialAppState;
376
- };
377
-
378
- /** Initialize with a set of values */
379
- Builder(const Input i);
380
- /** Initialize with an existing Constants */
381
- Builder(Constants i);
382
- /** Builds the object. Generally used only by the infrastructure. */
383
- NSDictionary *buildUnsafeRawValue() const { return _factory(); };
384
- private:
385
- NSDictionary *(^_factory)(void);
386
- };
387
-
388
- static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
389
- NSDictionary *unsafeRawValue() const { return _v; }
390
- private:
391
- Constants(NSDictionary *const v) : _v(v) {}
392
- NSDictionary *_v;
393
- };
394
- }
395
- }
396
- @protocol NativeAppStateSpec <RCTBridgeModule, RCTTurboModule>
397
-
398
- - (void)getCurrentAppState:(RCTResponseSenderBlock)success
399
- error:(RCTResponseSenderBlock)error;
400
- - (void)addListener:(NSString *)eventName;
401
- - (void)removeListeners:(double)count;
402
- - (facebook::react::ModuleConstants<JS::NativeAppState::Constants::Builder>)constantsToExport;
403
- - (facebook::react::ModuleConstants<JS::NativeAppState::Constants::Builder>)getConstants;
404
-
405
- @end
406
- namespace facebook::react {
407
- /**
408
- * ObjC++ class for module 'NativeAppState'
409
- */
410
- class JSI_EXPORT NativeAppStateSpecJSI : public ObjCTurboModule {
411
- public:
412
- NativeAppStateSpecJSI(const ObjCTurboModule::InitParams &params);
413
- };
414
- } // namespace facebook::react
415
-
416
- @protocol NativeAppearanceSpec <RCTBridgeModule, RCTTurboModule>
417
-
418
- - (NSString * _Nullable)getColorScheme;
419
- - (void)setColorScheme:(NSString *)colorScheme;
420
- - (void)addListener:(NSString *)eventName;
421
- - (void)removeListeners:(double)count;
422
-
423
- @end
424
- namespace facebook::react {
425
- /**
426
- * ObjC++ class for module 'NativeAppearance'
427
- */
428
- class JSI_EXPORT NativeAppearanceSpecJSI : public ObjCTurboModule {
429
- public:
430
- NativeAppearanceSpecJSI(const ObjCTurboModule::InitParams &params);
431
- };
432
- } // namespace facebook::react
433
- namespace JS {
434
- namespace NativeBlobModule {
435
- struct Constants {
436
-
437
- struct Builder {
438
- struct Input {
439
- RCTRequired<NSString *> BLOB_URI_SCHEME;
440
- RCTRequired<NSString *> BLOB_URI_HOST;
441
- };
442
-
443
- /** Initialize with a set of values */
444
- Builder(const Input i);
445
- /** Initialize with an existing Constants */
446
- Builder(Constants i);
447
- /** Builds the object. Generally used only by the infrastructure. */
448
- NSDictionary *buildUnsafeRawValue() const { return _factory(); };
449
- private:
450
- NSDictionary *(^_factory)(void);
451
- };
452
-
453
- static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
454
- NSDictionary *unsafeRawValue() const { return _v; }
455
- private:
456
- Constants(NSDictionary *const v) : _v(v) {}
457
- NSDictionary *_v;
458
- };
459
- }
460
- }
461
- @protocol NativeBlobModuleSpec <RCTBridgeModule, RCTTurboModule>
462
-
463
- - (void)addNetworkingHandler;
464
- - (void)addWebSocketHandler:(double)id;
465
- - (void)removeWebSocketHandler:(double)id;
466
- - (void)sendOverSocket:(NSDictionary *)blob
467
- socketID:(double)socketID;
468
- - (void)createFromParts:(NSArray *)parts
469
- withId:(NSString *)withId;
470
- - (void)release:(NSString *)blobId;
471
- - (facebook::react::ModuleConstants<JS::NativeBlobModule::Constants::Builder>)constantsToExport;
472
- - (facebook::react::ModuleConstants<JS::NativeBlobModule::Constants::Builder>)getConstants;
473
-
474
- @end
475
- namespace facebook::react {
476
- /**
477
- * ObjC++ class for module 'NativeBlobModule'
478
- */
479
- class JSI_EXPORT NativeBlobModuleSpecJSI : public ObjCTurboModule {
480
- public:
481
- NativeBlobModuleSpecJSI(const ObjCTurboModule::InitParams &params);
482
- };
483
- } // namespace facebook::react
484
-
485
- @protocol NativeBugReportingSpec <RCTBridgeModule, RCTTurboModule>
486
-
487
- - (void)startReportAProblemFlow;
488
- - (void)setExtraData:(NSDictionary *)extraData
489
- extraFiles:(NSDictionary *)extraFiles;
490
-
491
- @end
492
- namespace facebook::react {
493
- /**
494
- * ObjC++ class for module 'NativeBugReporting'
495
- */
496
- class JSI_EXPORT NativeBugReportingSpecJSI : public ObjCTurboModule {
497
- public:
498
- NativeBugReportingSpecJSI(const ObjCTurboModule::InitParams &params);
499
- };
500
- } // namespace facebook::react
501
-
502
- @protocol NativeClipboardSpec <RCTBridgeModule, RCTTurboModule>
503
-
504
- - (void)getString:(RCTPromiseResolveBlock)resolve
505
- reject:(RCTPromiseRejectBlock)reject;
506
- - (void)setString:(NSString *)content;
507
-
508
- @end
509
- namespace facebook::react {
510
- /**
511
- * ObjC++ class for module 'NativeClipboard'
512
- */
513
- class JSI_EXPORT NativeClipboardSpecJSI : public ObjCTurboModule {
514
- public:
515
- NativeClipboardSpecJSI(const ObjCTurboModule::InitParams &params);
516
- };
517
- } // namespace facebook::react
518
-
519
- @protocol NativeDevLoadingViewSpec <RCTBridgeModule, RCTTurboModule>
520
-
521
- - (void)showMessage:(NSString *)message
522
- withColor:(NSNumber *)withColor
523
- withBackgroundColor:(NSNumber *)withBackgroundColor;
524
- - (void)hide;
525
-
526
- @end
527
- namespace facebook::react {
528
- /**
529
- * ObjC++ class for module 'NativeDevLoadingView'
530
- */
531
- class JSI_EXPORT NativeDevLoadingViewSpecJSI : public ObjCTurboModule {
532
- public:
533
- NativeDevLoadingViewSpecJSI(const ObjCTurboModule::InitParams &params);
534
- };
535
- } // namespace facebook::react
536
-
537
- @protocol NativeDevMenuSpec <RCTBridgeModule, RCTTurboModule>
538
-
539
- - (void)show;
540
- - (void)reload;
541
- - (void)debugRemotely:(BOOL)enableDebug;
542
- - (void)setProfilingEnabled:(BOOL)enabled;
543
- - (void)setHotLoadingEnabled:(BOOL)enabled;
544
-
545
- @end
546
- namespace facebook::react {
547
- /**
548
- * ObjC++ class for module 'NativeDevMenu'
549
- */
550
- class JSI_EXPORT NativeDevMenuSpecJSI : public ObjCTurboModule {
551
- public:
552
- NativeDevMenuSpecJSI(const ObjCTurboModule::InitParams &params);
553
- };
554
- } // namespace facebook::react
555
-
556
- @protocol NativeDevSettingsSpec <RCTBridgeModule, RCTTurboModule>
557
-
558
- - (void)reload;
559
- - (void)reloadWithReason:(NSString *)reason;
560
- - (void)onFastRefresh;
561
- - (void)setHotLoadingEnabled:(BOOL)isHotLoadingEnabled;
562
- - (void)setIsDebuggingRemotely:(BOOL)isDebuggingRemotelyEnabled;
563
- - (void)setProfilingEnabled:(BOOL)isProfilingEnabled;
564
- - (void)toggleElementInspector;
565
- - (void)addMenuItem:(NSString *)title;
566
- - (void)openDebugger;
567
- - (void)addListener:(NSString *)eventName;
568
- - (void)removeListeners:(double)count;
569
- - (void)setIsShakeToShowDevMenuEnabled:(BOOL)enabled;
570
-
571
- @end
572
- namespace facebook::react {
573
- /**
574
- * ObjC++ class for module 'NativeDevSettings'
575
- */
576
- class JSI_EXPORT NativeDevSettingsSpecJSI : public ObjCTurboModule {
577
- public:
578
- NativeDevSettingsSpecJSI(const ObjCTurboModule::InitParams &params);
579
- };
580
- } // namespace facebook::react
581
-
582
- @protocol NativeDevToolsSettingsManagerSpec <RCTBridgeModule, RCTTurboModule>
583
-
584
- - (void)setConsolePatchSettings:(NSString *)newConsolePatchSettings;
585
- - (NSString * _Nullable)getConsolePatchSettings;
586
- - (void)setProfilingSettings:(NSString *)newProfilingSettings;
587
- - (NSString * _Nullable)getProfilingSettings;
588
-
589
- @end
590
- namespace facebook::react {
591
- /**
592
- * ObjC++ class for module 'NativeDevToolsSettingsManager'
593
- */
594
- class JSI_EXPORT NativeDevToolsSettingsManagerSpecJSI : public ObjCTurboModule {
595
- public:
596
- NativeDevToolsSettingsManagerSpecJSI(const ObjCTurboModule::InitParams &params);
597
- };
598
- } // namespace facebook::react
599
-
600
- @protocol NativeDeviceEventManagerSpec <RCTBridgeModule, RCTTurboModule>
601
-
602
- - (void)invokeDefaultBackPressHandler;
603
-
604
- @end
605
- namespace facebook::react {
606
- /**
607
- * ObjC++ class for module 'NativeDeviceEventManager'
608
- */
609
- class JSI_EXPORT NativeDeviceEventManagerSpecJSI : public ObjCTurboModule {
610
- public:
611
- NativeDeviceEventManagerSpecJSI(const ObjCTurboModule::InitParams &params);
612
- };
613
- } // namespace facebook::react
614
- namespace JS {
615
- namespace NativeDeviceInfo {
616
- struct DisplayMetrics {
617
-
618
- struct Builder {
619
- struct Input {
620
- RCTRequired<double> width;
621
- RCTRequired<double> height;
622
- RCTRequired<double> scale;
623
- RCTRequired<double> fontScale;
624
- };
625
-
626
- /** Initialize with a set of values */
627
- Builder(const Input i);
628
- /** Initialize with an existing DisplayMetrics */
629
- Builder(DisplayMetrics i);
630
- /** Builds the object. Generally used only by the infrastructure. */
631
- NSDictionary *buildUnsafeRawValue() const { return _factory(); };
632
- private:
633
- NSDictionary *(^_factory)(void);
634
- };
635
-
636
- static DisplayMetrics fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
637
- NSDictionary *unsafeRawValue() const { return _v; }
638
- private:
639
- DisplayMetrics(NSDictionary *const v) : _v(v) {}
640
- NSDictionary *_v;
641
- };
642
- }
643
- }
644
- namespace JS {
645
- namespace NativeDeviceInfo {
646
- struct DisplayMetricsAndroid {
647
-
648
- struct Builder {
649
- struct Input {
650
- RCTRequired<double> width;
651
- RCTRequired<double> height;
652
- RCTRequired<double> scale;
653
- RCTRequired<double> fontScale;
654
- RCTRequired<double> densityDpi;
655
- };
656
-
657
- /** Initialize with a set of values */
658
- Builder(const Input i);
659
- /** Initialize with an existing DisplayMetricsAndroid */
660
- Builder(DisplayMetricsAndroid i);
661
- /** Builds the object. Generally used only by the infrastructure. */
662
- NSDictionary *buildUnsafeRawValue() const { return _factory(); };
663
- private:
664
- NSDictionary *(^_factory)(void);
665
- };
666
-
667
- static DisplayMetricsAndroid fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
668
- NSDictionary *unsafeRawValue() const { return _v; }
669
- private:
670
- DisplayMetricsAndroid(NSDictionary *const v) : _v(v) {}
671
- NSDictionary *_v;
672
- };
673
- }
674
- }
675
- namespace JS {
676
- namespace NativeDeviceInfo {
677
- struct DimensionsPayload {
678
-
679
- struct Builder {
680
- struct Input {
681
- std::optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> window;
682
- std::optional<JS::NativeDeviceInfo::DisplayMetrics::Builder> screen;
683
- std::optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> windowPhysicalPixels;
684
- std::optional<JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder> screenPhysicalPixels;
685
- };
686
-
687
- /** Initialize with a set of values */
688
- Builder(const Input i);
689
- /** Initialize with an existing DimensionsPayload */
690
- Builder(DimensionsPayload i);
691
- /** Builds the object. Generally used only by the infrastructure. */
692
- NSDictionary *buildUnsafeRawValue() const { return _factory(); };
693
- private:
694
- NSDictionary *(^_factory)(void);
695
- };
696
-
697
- static DimensionsPayload fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
698
- NSDictionary *unsafeRawValue() const { return _v; }
699
- private:
700
- DimensionsPayload(NSDictionary *const v) : _v(v) {}
701
- NSDictionary *_v;
702
- };
703
- }
704
- }
705
- namespace JS {
706
- namespace NativeDeviceInfo {
707
- struct Constants {
708
-
709
- struct Builder {
710
- struct Input {
711
- RCTRequired<JS::NativeDeviceInfo::DimensionsPayload::Builder> Dimensions;
712
- std::optional<bool> isIPhoneX_deprecated;
713
- };
714
-
715
- /** Initialize with a set of values */
716
- Builder(const Input i);
717
- /** Initialize with an existing Constants */
718
- Builder(Constants i);
719
- /** Builds the object. Generally used only by the infrastructure. */
720
- NSDictionary *buildUnsafeRawValue() const { return _factory(); };
721
- private:
722
- NSDictionary *(^_factory)(void);
723
- };
724
-
725
- static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
726
- NSDictionary *unsafeRawValue() const { return _v; }
727
- private:
728
- Constants(NSDictionary *const v) : _v(v) {}
729
- NSDictionary *_v;
730
- };
731
- }
732
- }
733
- @protocol NativeDeviceInfoSpec <RCTBridgeModule, RCTTurboModule>
734
-
735
- - (facebook::react::ModuleConstants<JS::NativeDeviceInfo::Constants::Builder>)constantsToExport;
736
- - (facebook::react::ModuleConstants<JS::NativeDeviceInfo::Constants::Builder>)getConstants;
737
-
738
- @end
739
- namespace facebook::react {
740
- /**
741
- * ObjC++ class for module 'NativeDeviceInfo'
742
- */
743
- class JSI_EXPORT NativeDeviceInfoSpecJSI : public ObjCTurboModule {
744
- public:
745
- NativeDeviceInfoSpecJSI(const ObjCTurboModule::InitParams &params);
746
- };
747
- } // namespace facebook::react
748
- namespace JS {
749
- namespace NativeExceptionsManager {
750
- struct StackFrame {
751
- std::optional<double> column() const;
752
- NSString *file() const;
753
- std::optional<double> lineNumber() const;
754
- NSString *methodName() const;
755
- std::optional<bool> collapse() const;
756
-
757
- StackFrame(NSDictionary *const v) : _v(v) {}
758
- private:
759
- NSDictionary *_v;
760
- };
761
- }
762
- }
763
-
764
- @interface RCTCxxConvert (NativeExceptionsManager_StackFrame)
765
- + (RCTManagedPointer *)JS_NativeExceptionsManager_StackFrame:(id)json;
766
- @end
767
- namespace JS {
768
- namespace NativeExceptionsManager {
769
- struct ExceptionData {
770
- NSString *message() const;
771
- NSString *originalMessage() const;
772
- NSString *name() const;
773
- NSString *componentStack() const;
774
- facebook::react::LazyVector<JS::NativeExceptionsManager::StackFrame> stack() const;
775
- double id_() const;
776
- bool isFatal() const;
777
- id<NSObject> _Nullable extraData() const;
778
-
779
- ExceptionData(NSDictionary *const v) : _v(v) {}
780
- private:
781
- NSDictionary *_v;
782
- };
783
- }
784
- }
785
-
786
- @interface RCTCxxConvert (NativeExceptionsManager_ExceptionData)
787
- + (RCTManagedPointer *)JS_NativeExceptionsManager_ExceptionData:(id)json;
788
- @end
789
- @protocol NativeExceptionsManagerSpec <RCTBridgeModule, RCTTurboModule>
790
-
791
- - (void)reportFatalException:(NSString *)message
792
- stack:(NSArray *)stack
793
- exceptionId:(double)exceptionId;
794
- - (void)reportSoftException:(NSString *)message
795
- stack:(NSArray *)stack
796
- exceptionId:(double)exceptionId;
797
- - (void)reportException:(JS::NativeExceptionsManager::ExceptionData &)data;
798
- - (void)updateExceptionMessage:(NSString *)message
799
- stack:(NSArray *)stack
800
- exceptionId:(double)exceptionId;
801
- - (void)dismissRedbox;
802
-
803
- @end
804
- namespace facebook::react {
805
- /**
806
- * ObjC++ class for module 'NativeExceptionsManager'
807
- */
808
- class JSI_EXPORT NativeExceptionsManagerSpecJSI : public ObjCTurboModule {
809
- public:
810
- NativeExceptionsManagerSpecJSI(const ObjCTurboModule::InitParams &params);
811
- };
812
- } // namespace facebook::react
813
-
814
- @protocol NativeFileReaderModuleSpec <RCTBridgeModule, RCTTurboModule>
815
-
816
- - (void)readAsDataURL:(NSDictionary *)data
817
- resolve:(RCTPromiseResolveBlock)resolve
818
- reject:(RCTPromiseRejectBlock)reject;
819
- - (void)readAsText:(NSDictionary *)data
820
- encoding:(NSString *)encoding
821
- resolve:(RCTPromiseResolveBlock)resolve
822
- reject:(RCTPromiseRejectBlock)reject;
823
-
824
- @end
825
- namespace facebook::react {
826
- /**
827
- * ObjC++ class for module 'NativeFileReaderModule'
828
- */
829
- class JSI_EXPORT NativeFileReaderModuleSpecJSI : public ObjCTurboModule {
830
- public:
831
- NativeFileReaderModuleSpecJSI(const ObjCTurboModule::InitParams &params);
832
- };
833
- } // namespace facebook::react
834
- namespace JS {
835
- namespace NativeFrameRateLogger {
836
- struct SpecSetGlobalOptionsOptions {
837
- std::optional<bool> debug() const;
838
-
839
- SpecSetGlobalOptionsOptions(NSDictionary *const v) : _v(v) {}
840
- private:
841
- NSDictionary *_v;
842
- };
843
- }
844
- }
845
-
846
- @interface RCTCxxConvert (NativeFrameRateLogger_SpecSetGlobalOptionsOptions)
847
- + (RCTManagedPointer *)JS_NativeFrameRateLogger_SpecSetGlobalOptionsOptions:(id)json;
848
- @end
849
- @protocol NativeFrameRateLoggerSpec <RCTBridgeModule, RCTTurboModule>
850
-
851
- - (void)setGlobalOptions:(JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions &)options;
852
- - (void)setContext:(NSString *)context;
853
- - (void)beginScroll;
854
- - (void)endScroll;
855
-
856
- @end
857
- namespace facebook::react {
858
- /**
859
- * ObjC++ class for module 'NativeFrameRateLogger'
860
- */
861
- class JSI_EXPORT NativeFrameRateLoggerSpecJSI : public ObjCTurboModule {
862
- public:
863
- NativeFrameRateLoggerSpecJSI(const ObjCTurboModule::InitParams &params);
864
- };
865
- } // namespace facebook::react
866
-
867
- @protocol NativeHeadlessJsTaskSupportSpec <RCTBridgeModule, RCTTurboModule>
868
-
869
- - (void)notifyTaskFinished:(double)taskId;
870
- - (void)notifyTaskRetry:(double)taskId
871
- resolve:(RCTPromiseResolveBlock)resolve
872
- reject:(RCTPromiseRejectBlock)reject;
873
-
874
- @end
875
- namespace facebook::react {
876
- /**
877
- * ObjC++ class for module 'NativeHeadlessJsTaskSupport'
878
- */
879
- class JSI_EXPORT NativeHeadlessJsTaskSupportSpecJSI : public ObjCTurboModule {
880
- public:
881
- NativeHeadlessJsTaskSupportSpecJSI(const ObjCTurboModule::InitParams &params);
882
- };
883
- } // namespace facebook::react
884
- namespace JS {
885
- namespace NativeI18nManager {
886
- struct Constants {
887
-
888
- struct Builder {
889
- struct Input {
890
- RCTRequired<bool> doLeftAndRightSwapInRTL;
891
- RCTRequired<bool> isRTL;
892
- NSString *localeIdentifier;
893
- };
894
-
895
- /** Initialize with a set of values */
896
- Builder(const Input i);
897
- /** Initialize with an existing Constants */
898
- Builder(Constants i);
899
- /** Builds the object. Generally used only by the infrastructure. */
900
- NSDictionary *buildUnsafeRawValue() const { return _factory(); };
901
- private:
902
- NSDictionary *(^_factory)(void);
903
- };
904
-
905
- static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
906
- NSDictionary *unsafeRawValue() const { return _v; }
907
- private:
908
- Constants(NSDictionary *const v) : _v(v) {}
909
- NSDictionary *_v;
910
- };
911
- }
912
- }
913
- @protocol NativeI18nManagerSpec <RCTBridgeModule, RCTTurboModule>
914
-
915
- - (void)allowRTL:(BOOL)allowRTL;
916
- - (void)forceRTL:(BOOL)forceRTL;
917
- - (void)swapLeftAndRightInRTL:(BOOL)flipStyles;
918
- - (facebook::react::ModuleConstants<JS::NativeI18nManager::Constants::Builder>)constantsToExport;
919
- - (facebook::react::ModuleConstants<JS::NativeI18nManager::Constants::Builder>)getConstants;
920
-
921
- @end
922
- namespace facebook::react {
923
- /**
924
- * ObjC++ class for module 'NativeI18nManager'
925
- */
926
- class JSI_EXPORT NativeI18nManagerSpecJSI : public ObjCTurboModule {
927
- public:
928
- NativeI18nManagerSpecJSI(const ObjCTurboModule::InitParams &params);
929
- };
930
- } // namespace facebook::react
931
- namespace JS {
932
- namespace NativeImageEditor {
933
- struct OptionsOffset {
934
- double x() const;
935
- double y() const;
936
-
937
- OptionsOffset(NSDictionary *const v) : _v(v) {}
938
- private:
939
- NSDictionary *_v;
940
- };
941
- }
942
- }
943
-
944
- @interface RCTCxxConvert (NativeImageEditor_OptionsOffset)
945
- + (RCTManagedPointer *)JS_NativeImageEditor_OptionsOffset:(id)json;
946
- @end
947
- namespace JS {
948
- namespace NativeImageEditor {
949
- struct OptionsSize {
950
- double width() const;
951
- double height() const;
952
-
953
- OptionsSize(NSDictionary *const v) : _v(v) {}
954
- private:
955
- NSDictionary *_v;
956
- };
957
- }
958
- }
959
-
960
- @interface RCTCxxConvert (NativeImageEditor_OptionsSize)
961
- + (RCTManagedPointer *)JS_NativeImageEditor_OptionsSize:(id)json;
962
- @end
963
- namespace JS {
964
- namespace NativeImageEditor {
965
- struct OptionsDisplaySize {
966
- double width() const;
967
- double height() const;
968
-
969
- OptionsDisplaySize(NSDictionary *const v) : _v(v) {}
970
- private:
971
- NSDictionary *_v;
972
- };
973
- }
974
- }
975
-
976
- @interface RCTCxxConvert (NativeImageEditor_OptionsDisplaySize)
977
- + (RCTManagedPointer *)JS_NativeImageEditor_OptionsDisplaySize:(id)json;
978
- @end
979
- namespace JS {
980
- namespace NativeImageEditor {
981
- struct Options {
982
- JS::NativeImageEditor::OptionsOffset offset() const;
983
- JS::NativeImageEditor::OptionsSize size() const;
984
- std::optional<JS::NativeImageEditor::OptionsDisplaySize> displaySize() const;
985
- NSString *resizeMode() const;
986
- std::optional<bool> allowExternalStorage() const;
987
-
988
- Options(NSDictionary *const v) : _v(v) {}
989
- private:
990
- NSDictionary *_v;
991
- };
992
- }
993
- }
994
-
995
- @interface RCTCxxConvert (NativeImageEditor_Options)
996
- + (RCTManagedPointer *)JS_NativeImageEditor_Options:(id)json;
997
- @end
998
- @protocol NativeImageEditorSpec <RCTBridgeModule, RCTTurboModule>
999
-
1000
- - (void)cropImage:(NSString *)uri
1001
- cropData:(JS::NativeImageEditor::Options &)cropData
1002
- successCallback:(RCTResponseSenderBlock)successCallback
1003
- errorCallback:(RCTResponseSenderBlock)errorCallback;
1004
-
1005
- @end
1006
- namespace facebook::react {
1007
- /**
1008
- * ObjC++ class for module 'NativeImageEditor'
1009
- */
1010
- class JSI_EXPORT NativeImageEditorSpecJSI : public ObjCTurboModule {
1011
- public:
1012
- NativeImageEditorSpecJSI(const ObjCTurboModule::InitParams &params);
1013
- };
1014
- } // namespace facebook::react
1015
-
1016
- @protocol NativeImageLoaderIOSSpec <RCTBridgeModule, RCTTurboModule>
1017
-
1018
- - (void)getSize:(NSString *)uri
1019
- resolve:(RCTPromiseResolveBlock)resolve
1020
- reject:(RCTPromiseRejectBlock)reject;
1021
- - (void)getSizeWithHeaders:(NSString *)uri
1022
- headers:(NSDictionary *)headers
1023
- resolve:(RCTPromiseResolveBlock)resolve
1024
- reject:(RCTPromiseRejectBlock)reject;
1025
- - (void)prefetchImage:(NSString *)uri
1026
- resolve:(RCTPromiseResolveBlock)resolve
1027
- reject:(RCTPromiseRejectBlock)reject;
1028
- - (void)prefetchImageWithMetadata:(NSString *)uri
1029
- queryRootName:(NSString *)queryRootName
1030
- rootTag:(double)rootTag
1031
- resolve:(RCTPromiseResolveBlock)resolve
1032
- reject:(RCTPromiseRejectBlock)reject;
1033
- - (void)queryCache:(NSArray *)uris
1034
- resolve:(RCTPromiseResolveBlock)resolve
1035
- reject:(RCTPromiseRejectBlock)reject;
1036
-
1037
- @end
1038
- namespace facebook::react {
1039
- /**
1040
- * ObjC++ class for module 'NativeImageLoaderIOS'
1041
- */
1042
- class JSI_EXPORT NativeImageLoaderIOSSpecJSI : public ObjCTurboModule {
1043
- public:
1044
- NativeImageLoaderIOSSpecJSI(const ObjCTurboModule::InitParams &params);
1045
- };
1046
- } // namespace facebook::react
1047
-
1048
- @protocol NativeImageStoreIOSSpec <RCTBridgeModule, RCTTurboModule>
1049
-
1050
- - (void)getBase64ForTag:(NSString *)uri
1051
- successCallback:(RCTResponseSenderBlock)successCallback
1052
- errorCallback:(RCTResponseSenderBlock)errorCallback;
1053
- - (void)hasImageForTag:(NSString *)uri
1054
- callback:(RCTResponseSenderBlock)callback;
1055
- - (void)removeImageForTag:(NSString *)uri;
1056
- - (void)addImageFromBase64:(NSString *)base64ImageData
1057
- successCallback:(RCTResponseSenderBlock)successCallback
1058
- errorCallback:(RCTResponseSenderBlock)errorCallback;
1059
-
1060
- @end
1061
- namespace facebook::react {
1062
- /**
1063
- * ObjC++ class for module 'NativeImageStoreIOS'
1064
- */
1065
- class JSI_EXPORT NativeImageStoreIOSSpecJSI : public ObjCTurboModule {
1066
- public:
1067
- NativeImageStoreIOSSpecJSI(const ObjCTurboModule::InitParams &params);
1068
- };
1069
- } // namespace facebook::react
1070
-
1071
- @protocol NativeJSCHeapCaptureSpec <RCTBridgeModule, RCTTurboModule>
1072
-
1073
- - (void)captureComplete:(NSString *)path
1074
- error:(NSString * _Nullable)error;
1075
-
1076
- @end
1077
- namespace facebook::react {
1078
- /**
1079
- * ObjC++ class for module 'NativeJSCHeapCapture'
1080
- */
1081
- class JSI_EXPORT NativeJSCHeapCaptureSpecJSI : public ObjCTurboModule {
1082
- public:
1083
- NativeJSCHeapCaptureSpecJSI(const ObjCTurboModule::InitParams &params);
1084
- };
1085
- } // namespace facebook::react
1086
-
1087
- @protocol NativeJSCSamplingProfilerSpec <RCTBridgeModule, RCTTurboModule>
1088
-
1089
- - (void)operationComplete:(double)token
1090
- result:(NSString * _Nullable)result
1091
- error:(NSString * _Nullable)error;
1092
-
1093
- @end
1094
- namespace facebook::react {
1095
- /**
1096
- * ObjC++ class for module 'NativeJSCSamplingProfiler'
1097
- */
1098
- class JSI_EXPORT NativeJSCSamplingProfilerSpecJSI : public ObjCTurboModule {
1099
- public:
1100
- NativeJSCSamplingProfilerSpecJSI(const ObjCTurboModule::InitParams &params);
1101
- };
1102
- } // namespace facebook::react
1103
-
1104
- @protocol NativeKeyboardObserverSpec <RCTBridgeModule, RCTTurboModule>
1105
-
1106
- - (void)addListener:(NSString *)eventName;
1107
- - (void)removeListeners:(double)count;
1108
-
1109
- @end
1110
- namespace facebook::react {
1111
- /**
1112
- * ObjC++ class for module 'NativeKeyboardObserver'
1113
- */
1114
- class JSI_EXPORT NativeKeyboardObserverSpecJSI : public ObjCTurboModule {
1115
- public:
1116
- NativeKeyboardObserverSpecJSI(const ObjCTurboModule::InitParams &params);
1117
- };
1118
- } // namespace facebook::react
1119
-
1120
- @protocol NativeLinkingManagerSpec <RCTBridgeModule, RCTTurboModule>
1121
-
1122
- - (void)getInitialURL:(RCTPromiseResolveBlock)resolve
1123
- reject:(RCTPromiseRejectBlock)reject;
1124
- - (void)canOpenURL:(NSString *)url
1125
- resolve:(RCTPromiseResolveBlock)resolve
1126
- reject:(RCTPromiseRejectBlock)reject;
1127
- - (void)openURL:(NSString *)url
1128
- resolve:(RCTPromiseResolveBlock)resolve
1129
- reject:(RCTPromiseRejectBlock)reject;
1130
- - (void)openSettings:(RCTPromiseResolveBlock)resolve
1131
- reject:(RCTPromiseRejectBlock)reject;
1132
- - (void)addListener:(NSString *)eventName;
1133
- - (void)removeListeners:(double)count;
1134
-
1135
- @end
1136
- namespace facebook::react {
1137
- /**
1138
- * ObjC++ class for module 'NativeLinkingManager'
1139
- */
1140
- class JSI_EXPORT NativeLinkingManagerSpecJSI : public ObjCTurboModule {
1141
- public:
1142
- NativeLinkingManagerSpecJSI(const ObjCTurboModule::InitParams &params);
1143
- };
1144
- } // namespace facebook::react
1145
-
1146
- @protocol NativeLogBoxSpec <RCTBridgeModule, RCTTurboModule>
1147
-
1148
- - (void)show;
1149
- - (void)hide;
1150
-
1151
- @end
1152
- namespace facebook::react {
1153
- /**
1154
- * ObjC++ class for module 'NativeLogBox'
1155
- */
1156
- class JSI_EXPORT NativeLogBoxSpecJSI : public ObjCTurboModule {
1157
- public:
1158
- NativeLogBoxSpecJSI(const ObjCTurboModule::InitParams &params);
1159
- };
1160
- } // namespace facebook::react
1161
-
1162
- @protocol NativeModalManagerSpec <RCTBridgeModule, RCTTurboModule>
1163
-
1164
- - (void)addListener:(NSString *)eventName;
1165
- - (void)removeListeners:(double)count;
1166
-
1167
- @end
1168
- namespace facebook::react {
1169
- /**
1170
- * ObjC++ class for module 'NativeModalManager'
1171
- */
1172
- class JSI_EXPORT NativeModalManagerSpecJSI : public ObjCTurboModule {
1173
- public:
1174
- NativeModalManagerSpecJSI(const ObjCTurboModule::InitParams &params);
1175
- };
1176
- } // namespace facebook::react
1177
- namespace JS {
1178
- namespace NativeNetworkingIOS {
1179
- struct SpecSendRequestQuery {
1180
- NSString *method() const;
1181
- NSString *url() const;
1182
- id<NSObject> data() const;
1183
- id<NSObject> headers() const;
1184
- NSString *responseType() const;
1185
- bool incrementalUpdates() const;
1186
- double timeout() const;
1187
- bool withCredentials() const;
1188
-
1189
- SpecSendRequestQuery(NSDictionary *const v) : _v(v) {}
1190
- private:
1191
- NSDictionary *_v;
1192
- };
1193
- }
1194
- }
1195
-
1196
- @interface RCTCxxConvert (NativeNetworkingIOS_SpecSendRequestQuery)
1197
- + (RCTManagedPointer *)JS_NativeNetworkingIOS_SpecSendRequestQuery:(id)json;
1198
- @end
1199
- @protocol NativeNetworkingIOSSpec <RCTBridgeModule, RCTTurboModule>
1200
-
1201
- - (void)sendRequest:(JS::NativeNetworkingIOS::SpecSendRequestQuery &)query
1202
- callback:(RCTResponseSenderBlock)callback;
1203
- - (void)abortRequest:(double)requestId;
1204
- - (void)clearCookies:(RCTResponseSenderBlock)callback;
1205
- - (void)addListener:(NSString *)eventName;
1206
- - (void)removeListeners:(double)count;
1207
-
1208
- @end
1209
- namespace facebook::react {
1210
- /**
1211
- * ObjC++ class for module 'NativeNetworkingIOS'
1212
- */
1213
- class JSI_EXPORT NativeNetworkingIOSSpecJSI : public ObjCTurboModule {
1214
- public:
1215
- NativeNetworkingIOSSpecJSI(const ObjCTurboModule::InitParams &params);
1216
- };
1217
- } // namespace facebook::react
1218
- namespace JS {
1219
- namespace NativePlatformConstantsIOS {
1220
- struct ConstantsReactNativeVersion {
1221
-
1222
- struct Builder {
1223
- struct Input {
1224
- RCTRequired<double> major;
1225
- RCTRequired<double> minor;
1226
- RCTRequired<double> patch;
1227
- RCTRequired<NSString *> prerelease;
1228
- };
1229
-
1230
- /** Initialize with a set of values */
1231
- Builder(const Input i);
1232
- /** Initialize with an existing ConstantsReactNativeVersion */
1233
- Builder(ConstantsReactNativeVersion i);
1234
- /** Builds the object. Generally used only by the infrastructure. */
1235
- NSDictionary *buildUnsafeRawValue() const { return _factory(); };
1236
- private:
1237
- NSDictionary *(^_factory)(void);
1238
- };
1239
-
1240
- static ConstantsReactNativeVersion fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
1241
- NSDictionary *unsafeRawValue() const { return _v; }
1242
- private:
1243
- ConstantsReactNativeVersion(NSDictionary *const v) : _v(v) {}
1244
- NSDictionary *_v;
1245
- };
1246
- }
1247
- }
1248
- namespace JS {
1249
- namespace NativePlatformConstantsIOS {
1250
- struct Constants {
1251
-
1252
- struct Builder {
1253
- struct Input {
1254
- RCTRequired<bool> isTesting;
1255
- std::optional<bool> isDisableAnimations;
1256
- RCTRequired<JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder> reactNativeVersion;
1257
- RCTRequired<bool> forceTouchAvailable;
1258
- RCTRequired<NSString *> osVersion;
1259
- RCTRequired<NSString *> systemName;
1260
- RCTRequired<NSString *> interfaceIdiom;
1261
- std::optional<bool> isMacCatalyst;
1262
- };
1263
-
1264
- /** Initialize with a set of values */
1265
- Builder(const Input i);
1266
- /** Initialize with an existing Constants */
1267
- Builder(Constants i);
1268
- /** Builds the object. Generally used only by the infrastructure. */
1269
- NSDictionary *buildUnsafeRawValue() const { return _factory(); };
1270
- private:
1271
- NSDictionary *(^_factory)(void);
1272
- };
1273
-
1274
- static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
1275
- NSDictionary *unsafeRawValue() const { return _v; }
1276
- private:
1277
- Constants(NSDictionary *const v) : _v(v) {}
1278
- NSDictionary *_v;
1279
- };
1280
- }
1281
- }
1282
- @protocol NativePlatformConstantsIOSSpec <RCTBridgeModule, RCTTurboModule>
1283
-
1284
- - (facebook::react::ModuleConstants<JS::NativePlatformConstantsIOS::Constants::Builder>)constantsToExport;
1285
- - (facebook::react::ModuleConstants<JS::NativePlatformConstantsIOS::Constants::Builder>)getConstants;
1286
-
1287
- @end
1288
- namespace facebook::react {
1289
- /**
1290
- * ObjC++ class for module 'NativePlatformConstantsIOS'
1291
- */
1292
- class JSI_EXPORT NativePlatformConstantsIOSSpecJSI : public ObjCTurboModule {
1293
- public:
1294
- NativePlatformConstantsIOSSpecJSI(const ObjCTurboModule::InitParams &params);
1295
- };
1296
- } // namespace facebook::react
1297
- namespace JS {
1298
- namespace NativePushNotificationManagerIOS {
1299
- struct SpecRequestPermissionsPermission {
1300
- bool alert() const;
1301
- bool badge() const;
1302
- bool sound() const;
1303
-
1304
- SpecRequestPermissionsPermission(NSDictionary *const v) : _v(v) {}
1305
- private:
1306
- NSDictionary *_v;
1307
- };
1308
- }
1309
- }
1310
-
1311
- @interface RCTCxxConvert (NativePushNotificationManagerIOS_SpecRequestPermissionsPermission)
1312
- + (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_SpecRequestPermissionsPermission:(id)json;
1313
- @end
1314
- namespace JS {
1315
- namespace NativePushNotificationManagerIOS {
1316
- struct Notification {
1317
- NSString *alertTitle() const;
1318
- NSString *alertBody() const;
1319
- id<NSObject> _Nullable userInfo() const;
1320
- NSString *category() const;
1321
- std::optional<double> fireDate() const;
1322
- std::optional<double> fireIntervalSeconds() const;
1323
- std::optional<double> applicationIconBadgeNumber() const;
1324
- std::optional<bool> isSilent() const;
1325
- NSString *soundName() const;
1326
-
1327
- Notification(NSDictionary *const v) : _v(v) {}
1328
- private:
1329
- NSDictionary *_v;
1330
- };
1331
- }
1332
- }
1333
-
1334
- @interface RCTCxxConvert (NativePushNotificationManagerIOS_Notification)
1335
- + (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_Notification:(id)json;
1336
- @end
1337
- @protocol NativePushNotificationManagerIOSSpec <RCTBridgeModule, RCTTurboModule>
1338
-
1339
- - (void)onFinishRemoteNotification:(NSString *)notificationId
1340
- fetchResult:(NSString *)fetchResult;
1341
- - (void)setApplicationIconBadgeNumber:(double)num;
1342
- - (void)getApplicationIconBadgeNumber:(RCTResponseSenderBlock)callback;
1343
- - (void)requestPermissions:(JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission &)permission
1344
- resolve:(RCTPromiseResolveBlock)resolve
1345
- reject:(RCTPromiseRejectBlock)reject;
1346
- - (void)abandonPermissions;
1347
- - (void)checkPermissions:(RCTResponseSenderBlock)callback;
1348
- - (void)presentLocalNotification:(JS::NativePushNotificationManagerIOS::Notification &)notification;
1349
- - (void)scheduleLocalNotification:(JS::NativePushNotificationManagerIOS::Notification &)notification;
1350
- - (void)cancelAllLocalNotifications;
1351
- - (void)cancelLocalNotifications:(NSDictionary *)userInfo;
1352
- - (void)getInitialNotification:(RCTPromiseResolveBlock)resolve
1353
- reject:(RCTPromiseRejectBlock)reject;
1354
- - (void)getScheduledLocalNotifications:(RCTResponseSenderBlock)callback;
1355
- - (void)removeAllDeliveredNotifications;
1356
- - (void)removeDeliveredNotifications:(NSArray *)identifiers;
1357
- - (void)getDeliveredNotifications:(RCTResponseSenderBlock)callback;
1358
- - (void)getAuthorizationStatus:(RCTResponseSenderBlock)callback;
1359
- - (void)addListener:(NSString *)eventType;
1360
- - (void)removeListeners:(double)count;
1361
-
1362
- @end
1363
- namespace facebook::react {
1364
- /**
1365
- * ObjC++ class for module 'NativePushNotificationManagerIOS'
1366
- */
1367
- class JSI_EXPORT NativePushNotificationManagerIOSSpecJSI : public ObjCTurboModule {
1368
- public:
1369
- NativePushNotificationManagerIOSSpecJSI(const ObjCTurboModule::InitParams &params);
1370
- };
1371
- } // namespace facebook::react
1372
-
1373
- @protocol NativeRedBoxSpec <RCTBridgeModule, RCTTurboModule>
1374
-
1375
- - (void)setExtraData:(NSDictionary *)extraData
1376
- forIdentifier:(NSString *)forIdentifier;
1377
- - (void)dismiss;
1378
-
1379
- @end
1380
- namespace facebook::react {
1381
- /**
1382
- * ObjC++ class for module 'NativeRedBox'
1383
- */
1384
- class JSI_EXPORT NativeRedBoxSpecJSI : public ObjCTurboModule {
1385
- public:
1386
- NativeRedBoxSpecJSI(const ObjCTurboModule::InitParams &params);
1387
- };
1388
- } // namespace facebook::react
1389
-
1390
- @protocol NativeSegmentFetcherSpec <RCTBridgeModule, RCTTurboModule>
1391
-
1392
- - (void)fetchSegment:(double)segmentId
1393
- options:(NSDictionary *)options
1394
- callback:(RCTResponseSenderBlock)callback;
1395
- - (void)getSegment:(double)segmentId
1396
- options:(NSDictionary *)options
1397
- callback:(RCTResponseSenderBlock)callback;
1398
-
1399
- @end
1400
- namespace facebook::react {
1401
- /**
1402
- * ObjC++ class for module 'NativeSegmentFetcher'
1403
- */
1404
- class JSI_EXPORT NativeSegmentFetcherSpecJSI : public ObjCTurboModule {
1405
- public:
1406
- NativeSegmentFetcherSpecJSI(const ObjCTurboModule::InitParams &params);
1407
- };
1408
- } // namespace facebook::react
1409
- namespace JS {
1410
- namespace NativeSettingsManager {
1411
- struct Constants {
1412
-
1413
- struct Builder {
1414
- struct Input {
1415
- RCTRequired<id<NSObject>> settings;
1416
- };
1417
-
1418
- /** Initialize with a set of values */
1419
- Builder(const Input i);
1420
- /** Initialize with an existing Constants */
1421
- Builder(Constants i);
1422
- /** Builds the object. Generally used only by the infrastructure. */
1423
- NSDictionary *buildUnsafeRawValue() const { return _factory(); };
1424
- private:
1425
- NSDictionary *(^_factory)(void);
1426
- };
1427
-
1428
- static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
1429
- NSDictionary *unsafeRawValue() const { return _v; }
1430
- private:
1431
- Constants(NSDictionary *const v) : _v(v) {}
1432
- NSDictionary *_v;
1433
- };
1434
- }
1435
- }
1436
- @protocol NativeSettingsManagerSpec <RCTBridgeModule, RCTTurboModule>
1437
-
1438
- - (void)setValues:(NSDictionary *)values;
1439
- - (void)deleteValues:(NSArray *)values;
1440
- - (facebook::react::ModuleConstants<JS::NativeSettingsManager::Constants::Builder>)constantsToExport;
1441
- - (facebook::react::ModuleConstants<JS::NativeSettingsManager::Constants::Builder>)getConstants;
1442
-
1443
- @end
1444
- namespace facebook::react {
1445
- /**
1446
- * ObjC++ class for module 'NativeSettingsManager'
1447
- */
1448
- class JSI_EXPORT NativeSettingsManagerSpecJSI : public ObjCTurboModule {
1449
- public:
1450
- NativeSettingsManagerSpecJSI(const ObjCTurboModule::InitParams &params);
1451
- };
1452
- } // namespace facebook::react
1453
- namespace JS {
1454
- namespace NativeShareModule {
1455
- struct SpecShareContent {
1456
- NSString *title() const;
1457
- NSString *message() const;
1458
-
1459
- SpecShareContent(NSDictionary *const v) : _v(v) {}
1460
- private:
1461
- NSDictionary *_v;
1462
- };
1463
- }
1464
- }
1465
-
1466
- @interface RCTCxxConvert (NativeShareModule_SpecShareContent)
1467
- + (RCTManagedPointer *)JS_NativeShareModule_SpecShareContent:(id)json;
1468
- @end
1469
- @protocol NativeShareModuleSpec <RCTBridgeModule, RCTTurboModule>
1470
-
1471
- - (void)share:(JS::NativeShareModule::SpecShareContent &)content
1472
- dialogTitle:(NSString *)dialogTitle
1473
- resolve:(RCTPromiseResolveBlock)resolve
1474
- reject:(RCTPromiseRejectBlock)reject;
1475
-
1476
- @end
1477
- namespace facebook::react {
1478
- /**
1479
- * ObjC++ class for module 'NativeShareModule'
1480
- */
1481
- class JSI_EXPORT NativeShareModuleSpecJSI : public ObjCTurboModule {
1482
- public:
1483
- NativeShareModuleSpecJSI(const ObjCTurboModule::InitParams &params);
1484
- };
1485
- } // namespace facebook::react
1486
-
1487
- @protocol NativeSoundManagerSpec <RCTBridgeModule, RCTTurboModule>
1488
-
1489
- - (void)playTouchSound;
1490
-
1491
- @end
1492
- namespace facebook::react {
1493
- /**
1494
- * ObjC++ class for module 'NativeSoundManager'
1495
- */
1496
- class JSI_EXPORT NativeSoundManagerSpecJSI : public ObjCTurboModule {
1497
- public:
1498
- NativeSoundManagerSpecJSI(const ObjCTurboModule::InitParams &params);
1499
- };
1500
- } // namespace facebook::react
1501
- namespace JS {
1502
- namespace NativeSourceCode {
1503
- struct Constants {
1504
-
1505
- struct Builder {
1506
- struct Input {
1507
- RCTRequired<NSString *> scriptURL;
1508
- };
1509
-
1510
- /** Initialize with a set of values */
1511
- Builder(const Input i);
1512
- /** Initialize with an existing Constants */
1513
- Builder(Constants i);
1514
- /** Builds the object. Generally used only by the infrastructure. */
1515
- NSDictionary *buildUnsafeRawValue() const { return _factory(); };
1516
- private:
1517
- NSDictionary *(^_factory)(void);
1518
- };
1519
-
1520
- static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
1521
- NSDictionary *unsafeRawValue() const { return _v; }
1522
- private:
1523
- Constants(NSDictionary *const v) : _v(v) {}
1524
- NSDictionary *_v;
1525
- };
1526
- }
1527
- }
1528
- @protocol NativeSourceCodeSpec <RCTBridgeModule, RCTTurboModule>
1529
-
1530
- - (facebook::react::ModuleConstants<JS::NativeSourceCode::Constants::Builder>)constantsToExport;
1531
- - (facebook::react::ModuleConstants<JS::NativeSourceCode::Constants::Builder>)getConstants;
1532
-
1533
- @end
1534
- namespace facebook::react {
1535
- /**
1536
- * ObjC++ class for module 'NativeSourceCode'
1537
- */
1538
- class JSI_EXPORT NativeSourceCodeSpecJSI : public ObjCTurboModule {
1539
- public:
1540
- NativeSourceCodeSpecJSI(const ObjCTurboModule::InitParams &params);
1541
- };
1542
- } // namespace facebook::react
1543
- namespace JS {
1544
- namespace NativeStatusBarManagerIOS {
1545
- struct Constants {
1546
-
1547
- struct Builder {
1548
- struct Input {
1549
- RCTRequired<double> HEIGHT;
1550
- std::optional<double> DEFAULT_BACKGROUND_COLOR;
1551
- };
1552
-
1553
- /** Initialize with a set of values */
1554
- Builder(const Input i);
1555
- /** Initialize with an existing Constants */
1556
- Builder(Constants i);
1557
- /** Builds the object. Generally used only by the infrastructure. */
1558
- NSDictionary *buildUnsafeRawValue() const { return _factory(); };
1559
- private:
1560
- NSDictionary *(^_factory)(void);
1561
- };
1562
-
1563
- static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
1564
- NSDictionary *unsafeRawValue() const { return _v; }
1565
- private:
1566
- Constants(NSDictionary *const v) : _v(v) {}
1567
- NSDictionary *_v;
1568
- };
1569
- }
1570
- }
1571
- @protocol NativeStatusBarManagerIOSSpec <RCTBridgeModule, RCTTurboModule>
1572
-
1573
- - (void)getHeight:(RCTResponseSenderBlock)callback;
1574
- - (void)setNetworkActivityIndicatorVisible:(BOOL)visible;
1575
- - (void)addListener:(NSString *)eventType;
1576
- - (void)removeListeners:(double)count;
1577
- - (void)setStyle:(NSString * _Nullable)statusBarStyle
1578
- animated:(BOOL)animated;
1579
- - (void)setHidden:(BOOL)hidden
1580
- withAnimation:(NSString *)withAnimation;
1581
- - (facebook::react::ModuleConstants<JS::NativeStatusBarManagerIOS::Constants::Builder>)constantsToExport;
1582
- - (facebook::react::ModuleConstants<JS::NativeStatusBarManagerIOS::Constants::Builder>)getConstants;
1583
-
1584
- @end
1585
- namespace facebook::react {
1586
- /**
1587
- * ObjC++ class for module 'NativeStatusBarManagerIOS'
1588
- */
1589
- class JSI_EXPORT NativeStatusBarManagerIOSSpecJSI : public ObjCTurboModule {
1590
- public:
1591
- NativeStatusBarManagerIOSSpecJSI(const ObjCTurboModule::InitParams &params);
1592
- };
1593
- } // namespace facebook::react
1594
-
1595
- @protocol NativeTimingSpec <RCTBridgeModule, RCTTurboModule>
1596
-
1597
- - (void)createTimer:(double)callbackID
1598
- duration:(double)duration
1599
- jsSchedulingTime:(double)jsSchedulingTime
1600
- repeats:(BOOL)repeats;
1601
- - (void)deleteTimer:(double)timerID;
1602
- - (void)setSendIdleEvents:(BOOL)sendIdleEvents;
1603
-
1604
- @end
1605
- namespace facebook::react {
1606
- /**
1607
- * ObjC++ class for module 'NativeTiming'
1608
- */
1609
- class JSI_EXPORT NativeTimingSpecJSI : public ObjCTurboModule {
1610
- public:
1611
- NativeTimingSpecJSI(const ObjCTurboModule::InitParams &params);
1612
- };
1613
- } // namespace facebook::react
1614
-
1615
- @protocol NativeVibrationSpec <RCTBridgeModule, RCTTurboModule>
1616
-
1617
- - (void)vibrate:(double)pattern;
1618
- - (void)vibrateByPattern:(NSArray *)pattern
1619
- repeat:(double)repeat;
1620
- - (void)cancel;
1621
-
1622
- @end
1623
- namespace facebook::react {
1624
- /**
1625
- * ObjC++ class for module 'NativeVibration'
1626
- */
1627
- class JSI_EXPORT NativeVibrationSpecJSI : public ObjCTurboModule {
1628
- public:
1629
- NativeVibrationSpecJSI(const ObjCTurboModule::InitParams &params);
1630
- };
1631
- } // namespace facebook::react
1632
- namespace JS {
1633
- namespace NativeWebSocketModule {
1634
- struct SpecConnectOptions {
1635
- id<NSObject> _Nullable headers() const;
1636
-
1637
- SpecConnectOptions(NSDictionary *const v) : _v(v) {}
1638
- private:
1639
- NSDictionary *_v;
1640
- };
1641
- }
1642
- }
1643
-
1644
- @interface RCTCxxConvert (NativeWebSocketModule_SpecConnectOptions)
1645
- + (RCTManagedPointer *)JS_NativeWebSocketModule_SpecConnectOptions:(id)json;
1646
- @end
1647
- @protocol NativeWebSocketModuleSpec <RCTBridgeModule, RCTTurboModule>
1648
-
1649
- - (void)connect:(NSString *)url
1650
- protocols:(NSArray * _Nullable)protocols
1651
- options:(JS::NativeWebSocketModule::SpecConnectOptions &)options
1652
- socketID:(double)socketID;
1653
- - (void)send:(NSString *)message
1654
- forSocketID:(double)forSocketID;
1655
- - (void)sendBinary:(NSString *)base64String
1656
- forSocketID:(double)forSocketID;
1657
- - (void)ping:(double)socketID;
1658
- - (void)close:(double)code
1659
- reason:(NSString *)reason
1660
- socketID:(double)socketID;
1661
- - (void)addListener:(NSString *)eventName;
1662
- - (void)removeListeners:(double)count;
1663
-
1664
- @end
1665
- namespace facebook::react {
1666
- /**
1667
- * ObjC++ class for module 'NativeWebSocketModule'
1668
- */
1669
- class JSI_EXPORT NativeWebSocketModuleSpecJSI : public ObjCTurboModule {
1670
- public:
1671
- NativeWebSocketModuleSpecJSI(const ObjCTurboModule::InitParams &params);
1672
- };
1673
- } // namespace facebook::react
1674
-
1675
- inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraSmall() const
1676
- {
1677
- id const p = _v[@"extraSmall"];
1678
- return RCTBridgingToOptionalDouble(p);
1679
- }
1680
- inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::small() const
1681
- {
1682
- id const p = _v[@"small"];
1683
- return RCTBridgingToOptionalDouble(p);
1684
- }
1685
- inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::medium() const
1686
- {
1687
- id const p = _v[@"medium"];
1688
- return RCTBridgingToOptionalDouble(p);
1689
- }
1690
- inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::large() const
1691
- {
1692
- id const p = _v[@"large"];
1693
- return RCTBridgingToOptionalDouble(p);
1694
- }
1695
- inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraLarge() const
1696
- {
1697
- id const p = _v[@"extraLarge"];
1698
- return RCTBridgingToOptionalDouble(p);
1699
- }
1700
- inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraLarge() const
1701
- {
1702
- id const p = _v[@"extraExtraLarge"];
1703
- return RCTBridgingToOptionalDouble(p);
1704
- }
1705
- inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraExtraLarge() const
1706
- {
1707
- id const p = _v[@"extraExtraExtraLarge"];
1708
- return RCTBridgingToOptionalDouble(p);
1709
- }
1710
- inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityMedium() const
1711
- {
1712
- id const p = _v[@"accessibilityMedium"];
1713
- return RCTBridgingToOptionalDouble(p);
1714
- }
1715
- inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityLarge() const
1716
- {
1717
- id const p = _v[@"accessibilityLarge"];
1718
- return RCTBridgingToOptionalDouble(p);
1719
- }
1720
- inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraLarge() const
1721
- {
1722
- id const p = _v[@"accessibilityExtraLarge"];
1723
- return RCTBridgingToOptionalDouble(p);
1724
- }
1725
- inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraLarge() const
1726
- {
1727
- id const p = _v[@"accessibilityExtraExtraLarge"];
1728
- return RCTBridgingToOptionalDouble(p);
1729
- }
1730
- inline std::optional<double> JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraExtraLarge() const
1731
- {
1732
- id const p = _v[@"accessibilityExtraExtraExtraLarge"];
1733
- return RCTBridgingToOptionalDouble(p);
1734
- }
1735
- inline std::optional<bool> JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions::queue() const
1736
- {
1737
- id const p = _v[@"queue"];
1738
- return RCTBridgingToOptionalBool(p);
1739
- }
1740
- inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::title() const
1741
- {
1742
- id const p = _v[@"title"];
1743
- return RCTBridgingToOptionalString(p);
1744
- }
1745
- inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::message() const
1746
- {
1747
- id const p = _v[@"message"];
1748
- return RCTBridgingToOptionalString(p);
1749
- }
1750
- inline std::optional<facebook::react::LazyVector<NSString *>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::options() const
1751
- {
1752
- id const p = _v[@"options"];
1753
- return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
1754
- }
1755
- inline std::optional<facebook::react::LazyVector<double>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::destructiveButtonIndices() const
1756
- {
1757
- id const p = _v[@"destructiveButtonIndices"];
1758
- return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); });
1759
- }
1760
- inline std::optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonIndex() const
1761
- {
1762
- id const p = _v[@"cancelButtonIndex"];
1763
- return RCTBridgingToOptionalDouble(p);
1764
- }
1765
- inline std::optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::anchor() const
1766
- {
1767
- id const p = _v[@"anchor"];
1768
- return RCTBridgingToOptionalDouble(p);
1769
- }
1770
- inline std::optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::tintColor() const
1771
- {
1772
- id const p = _v[@"tintColor"];
1773
- return RCTBridgingToOptionalDouble(p);
1774
- }
1775
- inline std::optional<double> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonTintColor() const
1776
- {
1777
- id const p = _v[@"cancelButtonTintColor"];
1778
- return RCTBridgingToOptionalDouble(p);
1779
- }
1780
- inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::userInterfaceStyle() const
1781
- {
1782
- id const p = _v[@"userInterfaceStyle"];
1783
- return RCTBridgingToOptionalString(p);
1784
- }
1785
- inline std::optional<facebook::react::LazyVector<double>> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::disabledButtonIndices() const
1786
- {
1787
- id const p = _v[@"disabledButtonIndices"];
1788
- return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); });
1789
- }
1790
- inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::message() const
1791
- {
1792
- id const p = _v[@"message"];
1793
- return RCTBridgingToOptionalString(p);
1794
- }
1795
- inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::url() const
1796
- {
1797
- id const p = _v[@"url"];
1798
- return RCTBridgingToOptionalString(p);
1799
- }
1800
- inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::subject() const
1801
- {
1802
- id const p = _v[@"subject"];
1803
- return RCTBridgingToOptionalString(p);
1804
- }
1805
- inline std::optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::anchor() const
1806
- {
1807
- id const p = _v[@"anchor"];
1808
- return RCTBridgingToOptionalDouble(p);
1809
- }
1810
- inline std::optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::tintColor() const
1811
- {
1812
- id const p = _v[@"tintColor"];
1813
- return RCTBridgingToOptionalDouble(p);
1814
- }
1815
- inline std::optional<double> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::cancelButtonTintColor() const
1816
- {
1817
- id const p = _v[@"cancelButtonTintColor"];
1818
- return RCTBridgingToOptionalDouble(p);
1819
- }
1820
- inline std::optional<facebook::react::LazyVector<NSString *>> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::excludedActivityTypes() const
1821
- {
1822
- id const p = _v[@"excludedActivityTypes"];
1823
- return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
1824
- }
1825
- inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::userInterfaceStyle() const
1826
- {
1827
- id const p = _v[@"userInterfaceStyle"];
1828
- return RCTBridgingToOptionalString(p);
1829
- }
1830
- inline NSString *JS::NativeAlertManager::Args::title() const
1831
- {
1832
- id const p = _v[@"title"];
1833
- return RCTBridgingToOptionalString(p);
1834
- }
1835
- inline NSString *JS::NativeAlertManager::Args::message() const
1836
- {
1837
- id const p = _v[@"message"];
1838
- return RCTBridgingToOptionalString(p);
1839
- }
1840
- inline std::optional<facebook::react::LazyVector<id<NSObject>>> JS::NativeAlertManager::Args::buttons() const
1841
- {
1842
- id const p = _v[@"buttons"];
1843
- return RCTBridgingToOptionalVec(p, ^id<NSObject>(id itemValue_0) { return itemValue_0; });
1844
- }
1845
- inline NSString *JS::NativeAlertManager::Args::type() const
1846
- {
1847
- id const p = _v[@"type"];
1848
- return RCTBridgingToOptionalString(p);
1849
- }
1850
- inline NSString *JS::NativeAlertManager::Args::defaultValue() const
1851
- {
1852
- id const p = _v[@"defaultValue"];
1853
- return RCTBridgingToOptionalString(p);
1854
- }
1855
- inline NSString *JS::NativeAlertManager::Args::cancelButtonKey() const
1856
- {
1857
- id const p = _v[@"cancelButtonKey"];
1858
- return RCTBridgingToOptionalString(p);
1859
- }
1860
- inline NSString *JS::NativeAlertManager::Args::destructiveButtonKey() const
1861
- {
1862
- id const p = _v[@"destructiveButtonKey"];
1863
- return RCTBridgingToOptionalString(p);
1864
- }
1865
- inline NSString *JS::NativeAlertManager::Args::preferredButtonKey() const
1866
- {
1867
- id const p = _v[@"preferredButtonKey"];
1868
- return RCTBridgingToOptionalString(p);
1869
- }
1870
- inline NSString *JS::NativeAlertManager::Args::keyboardType() const
1871
- {
1872
- id const p = _v[@"keyboardType"];
1873
- return RCTBridgingToOptionalString(p);
1874
- }
1875
- inline NSString *JS::NativeAlertManager::Args::userInterfaceStyle() const
1876
- {
1877
- id const p = _v[@"userInterfaceStyle"];
1878
- return RCTBridgingToOptionalString(p);
1879
- }
1880
- inline facebook::react::LazyVector<NSString *> JS::NativeAnimatedModule::EventMapping::nativeEventPath() const
1881
- {
1882
- id const p = _v[@"nativeEventPath"];
1883
- return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
1884
- }
1885
- inline std::optional<double> JS::NativeAnimatedModule::EventMapping::animatedValueTag() const
1886
- {
1887
- id const p = _v[@"animatedValueTag"];
1888
- return RCTBridgingToOptionalDouble(p);
1889
- }
1890
- inline facebook::react::LazyVector<NSString *> JS::NativeAnimatedTurboModule::EventMapping::nativeEventPath() const
1891
- {
1892
- id const p = _v[@"nativeEventPath"];
1893
- return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); });
1894
- }
1895
- inline std::optional<double> JS::NativeAnimatedTurboModule::EventMapping::animatedValueTag() const
1896
- {
1897
- id const p = _v[@"animatedValueTag"];
1898
- return RCTBridgingToOptionalDouble(p);
1899
- }
1900
- inline JS::NativeAppState::Constants::Builder::Builder(const Input i) : _factory(^{
1901
- NSMutableDictionary *d = [NSMutableDictionary new];
1902
- auto initialAppState = i.initialAppState.get();
1903
- d[@"initialAppState"] = initialAppState;
1904
- return d;
1905
- }) {}
1906
- inline JS::NativeAppState::Constants::Builder::Builder(Constants i) : _factory(^{
1907
- return i.unsafeRawValue();
1908
- }) {}
1909
-
1910
- inline JS::NativeBlobModule::Constants::Builder::Builder(const Input i) : _factory(^{
1911
- NSMutableDictionary *d = [NSMutableDictionary new];
1912
- auto BLOB_URI_SCHEME = i.BLOB_URI_SCHEME.get();
1913
- d[@"BLOB_URI_SCHEME"] = BLOB_URI_SCHEME;
1914
- auto BLOB_URI_HOST = i.BLOB_URI_HOST.get();
1915
- d[@"BLOB_URI_HOST"] = BLOB_URI_HOST;
1916
- return d;
1917
- }) {}
1918
- inline JS::NativeBlobModule::Constants::Builder::Builder(Constants i) : _factory(^{
1919
- return i.unsafeRawValue();
1920
- }) {}
1921
-
1922
-
1923
-
1924
-
1925
-
1926
-
1927
-
1928
- inline JS::NativeDeviceInfo::DisplayMetrics::Builder::Builder(const Input i) : _factory(^{
1929
- NSMutableDictionary *d = [NSMutableDictionary new];
1930
- auto width = i.width.get();
1931
- d[@"width"] = @(width);
1932
- auto height = i.height.get();
1933
- d[@"height"] = @(height);
1934
- auto scale = i.scale.get();
1935
- d[@"scale"] = @(scale);
1936
- auto fontScale = i.fontScale.get();
1937
- d[@"fontScale"] = @(fontScale);
1938
- return d;
1939
- }) {}
1940
- inline JS::NativeDeviceInfo::DisplayMetrics::Builder::Builder(DisplayMetrics i) : _factory(^{
1941
- return i.unsafeRawValue();
1942
- }) {}
1943
- inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(const Input i) : _factory(^{
1944
- NSMutableDictionary *d = [NSMutableDictionary new];
1945
- auto width = i.width.get();
1946
- d[@"width"] = @(width);
1947
- auto height = i.height.get();
1948
- d[@"height"] = @(height);
1949
- auto scale = i.scale.get();
1950
- d[@"scale"] = @(scale);
1951
- auto fontScale = i.fontScale.get();
1952
- d[@"fontScale"] = @(fontScale);
1953
- auto densityDpi = i.densityDpi.get();
1954
- d[@"densityDpi"] = @(densityDpi);
1955
- return d;
1956
- }) {}
1957
- inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(DisplayMetricsAndroid i) : _factory(^{
1958
- return i.unsafeRawValue();
1959
- }) {}
1960
- inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(const Input i) : _factory(^{
1961
- NSMutableDictionary *d = [NSMutableDictionary new];
1962
- auto window = i.window;
1963
- d[@"window"] = window.has_value() ? window.value().buildUnsafeRawValue() : nil;
1964
- auto screen = i.screen;
1965
- d[@"screen"] = screen.has_value() ? screen.value().buildUnsafeRawValue() : nil;
1966
- auto windowPhysicalPixels = i.windowPhysicalPixels;
1967
- d[@"windowPhysicalPixels"] = windowPhysicalPixels.has_value() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil;
1968
- auto screenPhysicalPixels = i.screenPhysicalPixels;
1969
- d[@"screenPhysicalPixels"] = screenPhysicalPixels.has_value() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil;
1970
- return d;
1971
- }) {}
1972
- inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(DimensionsPayload i) : _factory(^{
1973
- return i.unsafeRawValue();
1974
- }) {}
1975
- inline JS::NativeDeviceInfo::Constants::Builder::Builder(const Input i) : _factory(^{
1976
- NSMutableDictionary *d = [NSMutableDictionary new];
1977
- auto Dimensions = i.Dimensions.get();
1978
- d[@"Dimensions"] = Dimensions.buildUnsafeRawValue();
1979
- auto isIPhoneX_deprecated = i.isIPhoneX_deprecated;
1980
- d[@"isIPhoneX_deprecated"] = isIPhoneX_deprecated.has_value() ? @((BOOL)isIPhoneX_deprecated.value()) : nil;
1981
- return d;
1982
- }) {}
1983
- inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory(^{
1984
- return i.unsafeRawValue();
1985
- }) {}
1986
- inline std::optional<double> JS::NativeExceptionsManager::StackFrame::column() const
1987
- {
1988
- id const p = _v[@"column"];
1989
- return RCTBridgingToOptionalDouble(p);
1990
- }
1991
- inline NSString *JS::NativeExceptionsManager::StackFrame::file() const
1992
- {
1993
- id const p = _v[@"file"];
1994
- return RCTBridgingToOptionalString(p);
1995
- }
1996
- inline std::optional<double> JS::NativeExceptionsManager::StackFrame::lineNumber() const
1997
- {
1998
- id const p = _v[@"lineNumber"];
1999
- return RCTBridgingToOptionalDouble(p);
2000
- }
2001
- inline NSString *JS::NativeExceptionsManager::StackFrame::methodName() const
2002
- {
2003
- id const p = _v[@"methodName"];
2004
- return RCTBridgingToString(p);
2005
- }
2006
- inline std::optional<bool> JS::NativeExceptionsManager::StackFrame::collapse() const
2007
- {
2008
- id const p = _v[@"collapse"];
2009
- return RCTBridgingToOptionalBool(p);
2010
- }
2011
- inline NSString *JS::NativeExceptionsManager::ExceptionData::message() const
2012
- {
2013
- id const p = _v[@"message"];
2014
- return RCTBridgingToString(p);
2015
- }
2016
- inline NSString *JS::NativeExceptionsManager::ExceptionData::originalMessage() const
2017
- {
2018
- id const p = _v[@"originalMessage"];
2019
- return RCTBridgingToOptionalString(p);
2020
- }
2021
- inline NSString *JS::NativeExceptionsManager::ExceptionData::name() const
2022
- {
2023
- id const p = _v[@"name"];
2024
- return RCTBridgingToOptionalString(p);
2025
- }
2026
- inline NSString *JS::NativeExceptionsManager::ExceptionData::componentStack() const
2027
- {
2028
- id const p = _v[@"componentStack"];
2029
- return RCTBridgingToOptionalString(p);
2030
- }
2031
- inline facebook::react::LazyVector<JS::NativeExceptionsManager::StackFrame> JS::NativeExceptionsManager::ExceptionData::stack() const
2032
- {
2033
- id const p = _v[@"stack"];
2034
- return RCTBridgingToVec(p, ^JS::NativeExceptionsManager::StackFrame(id itemValue_0) { return JS::NativeExceptionsManager::StackFrame(itemValue_0); });
2035
- }
2036
- inline double JS::NativeExceptionsManager::ExceptionData::id_() const
2037
- {
2038
- id const p = _v[@"id"];
2039
- return RCTBridgingToDouble(p);
2040
- }
2041
- inline bool JS::NativeExceptionsManager::ExceptionData::isFatal() const
2042
- {
2043
- id const p = _v[@"isFatal"];
2044
- return RCTBridgingToBool(p);
2045
- }
2046
- inline id<NSObject> _Nullable JS::NativeExceptionsManager::ExceptionData::extraData() const
2047
- {
2048
- id const p = _v[@"extraData"];
2049
- return p;
2050
- }
2051
-
2052
- inline std::optional<bool> JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::debug() const
2053
- {
2054
- id const p = _v[@"debug"];
2055
- return RCTBridgingToOptionalBool(p);
2056
- }
2057
-
2058
- inline JS::NativeI18nManager::Constants::Builder::Builder(const Input i) : _factory(^{
2059
- NSMutableDictionary *d = [NSMutableDictionary new];
2060
- auto doLeftAndRightSwapInRTL = i.doLeftAndRightSwapInRTL.get();
2061
- d[@"doLeftAndRightSwapInRTL"] = @(doLeftAndRightSwapInRTL);
2062
- auto isRTL = i.isRTL.get();
2063
- d[@"isRTL"] = @(isRTL);
2064
- auto localeIdentifier = i.localeIdentifier;
2065
- d[@"localeIdentifier"] = localeIdentifier;
2066
- return d;
2067
- }) {}
2068
- inline JS::NativeI18nManager::Constants::Builder::Builder(Constants i) : _factory(^{
2069
- return i.unsafeRawValue();
2070
- }) {}
2071
- inline double JS::NativeImageEditor::OptionsOffset::x() const
2072
- {
2073
- id const p = _v[@"x"];
2074
- return RCTBridgingToDouble(p);
2075
- }
2076
- inline double JS::NativeImageEditor::OptionsOffset::y() const
2077
- {
2078
- id const p = _v[@"y"];
2079
- return RCTBridgingToDouble(p);
2080
- }
2081
- inline double JS::NativeImageEditor::OptionsSize::width() const
2082
- {
2083
- id const p = _v[@"width"];
2084
- return RCTBridgingToDouble(p);
2085
- }
2086
- inline double JS::NativeImageEditor::OptionsSize::height() const
2087
- {
2088
- id const p = _v[@"height"];
2089
- return RCTBridgingToDouble(p);
2090
- }
2091
- inline double JS::NativeImageEditor::OptionsDisplaySize::width() const
2092
- {
2093
- id const p = _v[@"width"];
2094
- return RCTBridgingToDouble(p);
2095
- }
2096
- inline double JS::NativeImageEditor::OptionsDisplaySize::height() const
2097
- {
2098
- id const p = _v[@"height"];
2099
- return RCTBridgingToDouble(p);
2100
- }
2101
- inline JS::NativeImageEditor::OptionsOffset JS::NativeImageEditor::Options::offset() const
2102
- {
2103
- id const p = _v[@"offset"];
2104
- return JS::NativeImageEditor::OptionsOffset(p);
2105
- }
2106
- inline JS::NativeImageEditor::OptionsSize JS::NativeImageEditor::Options::size() const
2107
- {
2108
- id const p = _v[@"size"];
2109
- return JS::NativeImageEditor::OptionsSize(p);
2110
- }
2111
- inline std::optional<JS::NativeImageEditor::OptionsDisplaySize> JS::NativeImageEditor::Options::displaySize() const
2112
- {
2113
- id const p = _v[@"displaySize"];
2114
- return (p == nil ? std::nullopt : std::make_optional(JS::NativeImageEditor::OptionsDisplaySize(p)));
2115
- }
2116
- inline NSString *JS::NativeImageEditor::Options::resizeMode() const
2117
- {
2118
- id const p = _v[@"resizeMode"];
2119
- return RCTBridgingToOptionalString(p);
2120
- }
2121
- inline std::optional<bool> JS::NativeImageEditor::Options::allowExternalStorage() const
2122
- {
2123
- id const p = _v[@"allowExternalStorage"];
2124
- return RCTBridgingToOptionalBool(p);
2125
- }
2126
-
2127
-
2128
-
2129
-
2130
-
2131
-
2132
-
2133
-
2134
- inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::method() const
2135
- {
2136
- id const p = _v[@"method"];
2137
- return RCTBridgingToString(p);
2138
- }
2139
- inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::url() const
2140
- {
2141
- id const p = _v[@"url"];
2142
- return RCTBridgingToString(p);
2143
- }
2144
- inline id<NSObject> JS::NativeNetworkingIOS::SpecSendRequestQuery::data() const
2145
- {
2146
- id const p = _v[@"data"];
2147
- return p;
2148
- }
2149
- inline id<NSObject> JS::NativeNetworkingIOS::SpecSendRequestQuery::headers() const
2150
- {
2151
- id const p = _v[@"headers"];
2152
- return p;
2153
- }
2154
- inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::responseType() const
2155
- {
2156
- id const p = _v[@"responseType"];
2157
- return RCTBridgingToString(p);
2158
- }
2159
- inline bool JS::NativeNetworkingIOS::SpecSendRequestQuery::incrementalUpdates() const
2160
- {
2161
- id const p = _v[@"incrementalUpdates"];
2162
- return RCTBridgingToBool(p);
2163
- }
2164
- inline double JS::NativeNetworkingIOS::SpecSendRequestQuery::timeout() const
2165
- {
2166
- id const p = _v[@"timeout"];
2167
- return RCTBridgingToDouble(p);
2168
- }
2169
- inline bool JS::NativeNetworkingIOS::SpecSendRequestQuery::withCredentials() const
2170
- {
2171
- id const p = _v[@"withCredentials"];
2172
- return RCTBridgingToBool(p);
2173
- }
2174
- inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(const Input i) : _factory(^{
2175
- NSMutableDictionary *d = [NSMutableDictionary new];
2176
- auto major = i.major.get();
2177
- d[@"major"] = @(major);
2178
- auto minor = i.minor.get();
2179
- d[@"minor"] = @(minor);
2180
- auto patch = i.patch.get();
2181
- d[@"patch"] = @(patch);
2182
- auto prerelease = i.prerelease.get();
2183
- d[@"prerelease"] = prerelease;
2184
- return d;
2185
- }) {}
2186
- inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{
2187
- return i.unsafeRawValue();
2188
- }) {}
2189
- inline JS::NativePlatformConstantsIOS::Constants::Builder::Builder(const Input i) : _factory(^{
2190
- NSMutableDictionary *d = [NSMutableDictionary new];
2191
- auto isTesting = i.isTesting.get();
2192
- d[@"isTesting"] = @(isTesting);
2193
- auto isDisableAnimations = i.isDisableAnimations;
2194
- d[@"isDisableAnimations"] = isDisableAnimations.has_value() ? @((BOOL)isDisableAnimations.value()) : nil;
2195
- auto reactNativeVersion = i.reactNativeVersion.get();
2196
- d[@"reactNativeVersion"] = reactNativeVersion.buildUnsafeRawValue();
2197
- auto forceTouchAvailable = i.forceTouchAvailable.get();
2198
- d[@"forceTouchAvailable"] = @(forceTouchAvailable);
2199
- auto osVersion = i.osVersion.get();
2200
- d[@"osVersion"] = osVersion;
2201
- auto systemName = i.systemName.get();
2202
- d[@"systemName"] = systemName;
2203
- auto interfaceIdiom = i.interfaceIdiom.get();
2204
- d[@"interfaceIdiom"] = interfaceIdiom;
2205
- auto isMacCatalyst = i.isMacCatalyst;
2206
- d[@"isMacCatalyst"] = isMacCatalyst.has_value() ? @((BOOL)isMacCatalyst.value()) : nil;
2207
- return d;
2208
- }) {}
2209
- inline JS::NativePlatformConstantsIOS::Constants::Builder::Builder(Constants i) : _factory(^{
2210
- return i.unsafeRawValue();
2211
- }) {}
2212
- inline bool JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission::alert() const
2213
- {
2214
- id const p = _v[@"alert"];
2215
- return RCTBridgingToBool(p);
2216
- }
2217
- inline bool JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission::badge() const
2218
- {
2219
- id const p = _v[@"badge"];
2220
- return RCTBridgingToBool(p);
2221
- }
2222
- inline bool JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission::sound() const
2223
- {
2224
- id const p = _v[@"sound"];
2225
- return RCTBridgingToBool(p);
2226
- }
2227
- inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertTitle() const
2228
- {
2229
- id const p = _v[@"alertTitle"];
2230
- return RCTBridgingToOptionalString(p);
2231
- }
2232
- inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertBody() const
2233
- {
2234
- id const p = _v[@"alertBody"];
2235
- return RCTBridgingToOptionalString(p);
2236
- }
2237
- inline id<NSObject> _Nullable JS::NativePushNotificationManagerIOS::Notification::userInfo() const
2238
- {
2239
- id const p = _v[@"userInfo"];
2240
- return p;
2241
- }
2242
- inline NSString *JS::NativePushNotificationManagerIOS::Notification::category() const
2243
- {
2244
- id const p = _v[@"category"];
2245
- return RCTBridgingToOptionalString(p);
2246
- }
2247
- inline std::optional<double> JS::NativePushNotificationManagerIOS::Notification::fireDate() const
2248
- {
2249
- id const p = _v[@"fireDate"];
2250
- return RCTBridgingToOptionalDouble(p);
2251
- }
2252
- inline std::optional<double> JS::NativePushNotificationManagerIOS::Notification::fireIntervalSeconds() const
2253
- {
2254
- id const p = _v[@"fireIntervalSeconds"];
2255
- return RCTBridgingToOptionalDouble(p);
2256
- }
2257
- inline std::optional<double> JS::NativePushNotificationManagerIOS::Notification::applicationIconBadgeNumber() const
2258
- {
2259
- id const p = _v[@"applicationIconBadgeNumber"];
2260
- return RCTBridgingToOptionalDouble(p);
2261
- }
2262
- inline std::optional<bool> JS::NativePushNotificationManagerIOS::Notification::isSilent() const
2263
- {
2264
- id const p = _v[@"isSilent"];
2265
- return RCTBridgingToOptionalBool(p);
2266
- }
2267
- inline NSString *JS::NativePushNotificationManagerIOS::Notification::soundName() const
2268
- {
2269
- id const p = _v[@"soundName"];
2270
- return RCTBridgingToOptionalString(p);
2271
- }
2272
-
2273
-
2274
- inline JS::NativeSettingsManager::Constants::Builder::Builder(const Input i) : _factory(^{
2275
- NSMutableDictionary *d = [NSMutableDictionary new];
2276
- auto settings = i.settings.get();
2277
- d[@"settings"] = settings;
2278
- return d;
2279
- }) {}
2280
- inline JS::NativeSettingsManager::Constants::Builder::Builder(Constants i) : _factory(^{
2281
- return i.unsafeRawValue();
2282
- }) {}
2283
- inline NSString *JS::NativeShareModule::SpecShareContent::title() const
2284
- {
2285
- id const p = _v[@"title"];
2286
- return RCTBridgingToOptionalString(p);
2287
- }
2288
- inline NSString *JS::NativeShareModule::SpecShareContent::message() const
2289
- {
2290
- id const p = _v[@"message"];
2291
- return RCTBridgingToOptionalString(p);
2292
- }
2293
-
2294
- inline JS::NativeSourceCode::Constants::Builder::Builder(const Input i) : _factory(^{
2295
- NSMutableDictionary *d = [NSMutableDictionary new];
2296
- auto scriptURL = i.scriptURL.get();
2297
- d[@"scriptURL"] = scriptURL;
2298
- return d;
2299
- }) {}
2300
- inline JS::NativeSourceCode::Constants::Builder::Builder(Constants i) : _factory(^{
2301
- return i.unsafeRawValue();
2302
- }) {}
2303
- inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(const Input i) : _factory(^{
2304
- NSMutableDictionary *d = [NSMutableDictionary new];
2305
- auto HEIGHT = i.HEIGHT.get();
2306
- d[@"HEIGHT"] = @(HEIGHT);
2307
- auto DEFAULT_BACKGROUND_COLOR = i.DEFAULT_BACKGROUND_COLOR;
2308
- d[@"DEFAULT_BACKGROUND_COLOR"] = DEFAULT_BACKGROUND_COLOR.has_value() ? @((double)DEFAULT_BACKGROUND_COLOR.value()) : nil;
2309
- return d;
2310
- }) {}
2311
- inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{
2312
- return i.unsafeRawValue();
2313
- }) {}
2314
-
2315
-
2316
- inline id<NSObject> _Nullable JS::NativeWebSocketModule::SpecConnectOptions::headers() const
2317
- {
2318
- id const p = _v[@"headers"];
2319
- return p;
2320
- }
2321
- #endif // FBReactNativeSpec_H