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