@computools/react-native-template-controller 1.0.12 → 1.0.13

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