react-native-macos 0.76.7 → 0.76.8

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