react-native-macos 0.64.3 → 0.64.4

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