react-native-srschat 0.1.0 → 0.1.1

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