react-native-radar 4.32.0 → 4.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/android/src/newarch/java/com/radar/RadarModule.kt +2 -2
  2. package/android/src/oldarch/java/com/radar/RadarModule.java +2 -2
  3. package/dist/version.d.ts +1 -1
  4. package/dist/version.js +1 -1
  5. package/ios/RNRadar.mm +2 -2
  6. package/ios/RadarSDK.xcframework/Info.plist +5 -5
  7. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/Radar.h +34 -1
  8. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInitializeOptions.h +5 -0
  9. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSDKFraudProtocol.h +2 -0
  10. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSdkConfiguration.h +2 -0
  11. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarVerifiedDelegate.h +16 -0
  12. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Info.plist +0 -0
  13. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.abi.json +121 -76
  14. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/RadarSDK +0 -0
  15. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/Radar.h +34 -1
  16. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarInitializeOptions.h +5 -0
  17. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDKFraudProtocol.h +2 -0
  18. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSdkConfiguration.h +2 -0
  19. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarVerifiedDelegate.h +16 -0
  20. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Info.plist +0 -0
  21. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +121 -76
  22. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +121 -76
  23. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/RadarSDK +0 -0
  24. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeDirectory +0 -0
  25. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeResources +19 -19
  26. package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/Info.plist +0 -0
  27. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/Info.plist +0 -0
  28. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeDirectory +0 -0
  29. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeResources +1 -1
  30. package/package.json +1 -1
  31. package/src/version.ts +1 -1
@@ -284,6 +284,15 @@ typedef void (^_Nonnull RadarGeocodeCompletionHandler)(RadarStatus status, NSArr
284
284
  */
285
285
  typedef void (^_Nonnull RadarIPGeocodeCompletionHandler)(RadarStatus status, RadarAddress *_Nullable address, BOOL proxy);
286
286
 
287
+ /**
288
+ Called when an IP geocoding request succeeds, fails, or times out.
289
+
290
+ Receives the request status and, if successful, the geocoding result (a partial address) and a boolean indicating whether the IP address is a known proxy. Also receives the underlying NSError when the failure originated from a caught network, parse, or exception error — forward it to an error collector (Sentry, Crashlytics, etc.) to capture diagnostics.
291
+
292
+ @see https://radar.com/documentation/api#ip-geocode
293
+ */
294
+ typedef void (^_Nonnull RadarIPGeocodeWithErrorCompletionHandler)(RadarStatus status, RadarAddress *_Nullable address, BOOL proxy, NSError *_Nullable error);
295
+
287
296
  /**
288
297
  Called when an address validation request succeeds, fails, or times out.
289
298
 
@@ -408,6 +417,20 @@ typedef void (^_Nonnull RadarIndoorsScanCompletionHandler)(NSString *_Nullable r
408
417
  */
409
418
  + (NSString *_Nullable)getUserId;
410
419
 
420
+ /**
421
+ Sets the user's preferred language. Pass a BCP-47 language tag like `"en"` or `"es-PR"`.
422
+
423
+ @param userLanguage The user's preferred language. If `nil`, the previous `userLanguage` will be cleared.
424
+ */
425
+ + (void)setUserLanguage:(NSString *_Nullable)userLanguage;
426
+
427
+ /**
428
+ Returns the current `userLanguage`.
429
+
430
+ @return The current `userLanguage`.
431
+ */
432
+ + (NSString *_Nullable)getUserLanguage;
433
+
411
434
  /**
412
435
  Sets an optional description for the user, displayed in the dashboard.
413
436
 
@@ -1300,7 +1323,17 @@ typedef void (^_Nonnull RadarIndoorsScanCompletionHandler)(NSString *_Nullable r
1300
1323
 
1301
1324
  @see https://radar.com/documentation/api#ip-geocode
1302
1325
  */
1303
- + (void)ipGeocodeWithCompletionHandler:(RadarIPGeocodeCompletionHandler)completionHandler NS_SWIFT_NAME(ipGeocode(completionHandler:));
1326
+ + (void)ipGeocodeWithCompletionHandler:(RadarIPGeocodeCompletionHandler)completionHandler
1327
+ __attribute__((deprecated("Use ipGeocodeWithErrorCompletionHandler: to also receive the underlying NSError on network/parse errors.")));
1328
+
1329
+ /**
1330
+ Geocodes the device's current IP address, converting IP address to partial address. The completion handler also receives the underlying NSError when the failure originated from a caught network, parse, or exception error — forward it to an error collector (Sentry, Crashlytics, etc.) to capture diagnostics.
1331
+
1332
+ @param completionHandler A completion handler.
1333
+
1334
+ @see https://radar.com/documentation/api#ip-geocode
1335
+ */
1336
+ + (void)ipGeocodeWithErrorCompletionHandler:(RadarIPGeocodeWithErrorCompletionHandler)completionHandler NS_SWIFT_NAME(ipGeocode(completionHandler:));
1304
1337
 
1305
1338
 
1306
1339
  /**
@@ -21,6 +21,11 @@
21
21
  /// clamped to the range 1…300.
22
22
  @property (assign, nonatomic) NSTimeInterval networkTimeoutInterval;
23
23
 
24
+ /// Minimum interval in seconds between deliveries of `RadarVerifiedDelegate.didChangeIP()`.
25
+ /// Default 10 seconds. Set to 0 to disable throttling (deliver every detected change).
26
+ /// Negative or non-finite values fall back to the default.
27
+ @property (assign, nonatomic) NSTimeInterval ipChangeDebounceInterval;
28
+
24
29
  - (NSDictionary *_Nonnull)dictionaryValue;
25
30
  - (instancetype _Nonnull)initWithDict:(NSDictionary *_Nullable)dict;
26
31
 
@@ -21,6 +21,8 @@ typedef void (^RadarFraudPayloadCallback)(NSDictionary<NSString *, id> *_Nullabl
21
21
 
22
22
  - (void)getFraudPayloadWithOptions:(NSDictionary<NSString *, id> *)options completionHandler:(RadarFraudPayloadCallback)completionHandler;
23
23
 
24
+ - (void)setSharingDidChangeHandler:(nullable void (^)(BOOL sharing))handler;
25
+
24
26
  @end
25
27
 
26
28
  NS_ASSUME_NONNULL_END
@@ -37,6 +37,8 @@ NS_ASSUME_NONNULL_BEGIN
37
37
  - (BOOL)skipForegroundCheck;
38
38
  - (BOOL)useOfflineRTOUpdates;
39
39
  - (BOOL)offlineEventGenerationEnabled;
40
+ - (BOOL)useSwiftLocationManager;
41
+ - (BOOL)startUpdatesWhileInUse;
40
42
  - (NSArray<RadarRemoteTrackingOptions *> *_Nullable)remoteTrackingOptions;
41
43
  - (instancetype)initWithDict:(NSDictionary *_Nullable)dict;
42
44
  - (NSDictionary *)dictionaryValue;
@@ -26,6 +26,22 @@ NS_ASSUME_NONNULL_BEGIN
26
26
  */
27
27
  - (void)didUpdateToken:(RadarVerifiedLocationToken *_Nonnull)token NS_SWIFT_NAME(didUpdateToken(_:));
28
28
 
29
+ /**
30
+ Tells the delegate that the device's IP address changed while IP change monitoring is active.
31
+
32
+ @see https://radar.com/documentation/fraud
33
+ */
34
+ - (void)didChangeIP NS_SWIFT_NAME(didChangeIP());
35
+
36
+ /**
37
+ Tells the delegate that the device's screen sharing state changed.
38
+
39
+ @param sharing The current screen sharing state.
40
+
41
+ @see https://radar.com/documentation/fraud
42
+ */
43
+ - (void)didChangeSharing:(BOOL)sharing NS_SWIFT_NAME(didChangeSharing(_:));
44
+
29
45
  @end
30
46
 
31
47
  NS_ASSUME_NONNULL_END