mixpanel-react-native 3.0.3 → 3.0.4

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