react-native-radar 3.30.0-beta.1 → 3.30.0-beta.3
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/android/src/newarch/java/com/radar/RadarModule.kt +1 -1
- package/android/src/oldarch/java/com/radar/RadarModule.java +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/ios/RNRadar.mm +1 -1
- package/ios/RadarSDK.xcframework/Info.plist +0 -4
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/Radar-Swift.h +7 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/Radar.h +1380 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarAddress.h +172 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarBeacon.h +75 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarChain.h +44 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarCircleGeometry.h +27 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarContext.h +65 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarCoordinate.h +23 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarDelegate.h +67 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarEvent.h +209 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarFraud.h +73 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarGeofence.h +57 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarGeofenceGeometry.h +15 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInAppMessage.h +18 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInAppMessageDelegate.h +53 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarIndoorsProtocol.h +23 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInitializeOptions.h +22 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarMotionProtocol.h +28 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarOperatingHours.h +15 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarPlace.h +85 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarPolygonGeometry.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRegion.h +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRoute.h +42 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteDistance.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteDuration.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteGeometry.h +28 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteMatrix.h +34 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteMode.h +32 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRoutes.h +54 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSDK-Swift.h +364 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSDK.h +45 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSdkConfiguration.h +56 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSegment.h +32 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTimeZone.h +52 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTrackingOptions.h +204 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTrip.h +97 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTripOptions.h +75 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTripOrder.h +91 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarUser.h +164 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarVerifiedDelegate.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarVerifiedLocationToken.h +66 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Info.plist +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.abi.json +3608 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.swiftinterface +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/module.modulemap +11 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/PrivacyInfo.xcprivacy +106 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/RadarSDK +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/Radar-Swift.h +7 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/Radar.h +1380 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarAddress.h +172 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarBeacon.h +75 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarChain.h +44 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarCircleGeometry.h +27 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarContext.h +65 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarCoordinate.h +23 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarDelegate.h +67 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarEvent.h +209 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarFraud.h +73 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarGeofence.h +57 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarGeofenceGeometry.h +15 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarInAppMessage.h +18 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarInAppMessageDelegate.h +53 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarIndoorsProtocol.h +23 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarInitializeOptions.h +22 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarMotionProtocol.h +28 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarOperatingHours.h +15 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarPlace.h +85 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarPolygonGeometry.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRegion.h +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRoute.h +42 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteDistance.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteDuration.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteGeometry.h +28 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteMatrix.h +34 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteMode.h +32 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRoutes.h +54 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDK-Swift.h +724 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDK.h +45 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSdkConfiguration.h +56 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSegment.h +32 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTimeZone.h +52 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTrackingOptions.h +204 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTrip.h +97 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTripOptions.h +75 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTripOrder.h +91 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarUser.h +164 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarVerifiedDelegate.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarVerifiedLocationToken.h +66 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Info.plist +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +3608 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +3608 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/module.modulemap +11 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/PrivacyInfo.xcprivacy +106 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/RadarSDK +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeResources +685 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/RadarSDKMotion.xcframework/Info.plist +5 -9
- package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/Headers/RadarSDKMotion.h +38 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/Info.plist +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/Modules/module.modulemap +6 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/RadarSDKMotion +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/Headers/RadarSDKMotion.h +38 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/Info.plist +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/Modules/module.modulemap +6 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/RadarSDKMotion +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeResources +124 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeSignature +0 -0
- package/package.json +1 -1
- package/src/version.ts +1 -1
- package/ios/RadarSDK.xcframework/ios-arm64/dSYMs/RadarSDK.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/RadarSDK.xcframework/ios-arm64/dSYMs/RadarSDK.framework.dSYM/Contents/Resources/DWARF/RadarSDK +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64/dSYMs/RadarSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/RadarSDK.yml +0 -1810
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDK.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDK.framework.dSYM/Contents/Resources/DWARF/RadarSDK +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/RadarSDK.yml +0 -1795
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/RadarSDK.yml +0 -1814
- package/ios/RadarSDKMotion.xcframework/ios-arm64/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/RadarSDKMotion.xcframework/ios-arm64/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Resources/DWARF/RadarSDKMotion +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Resources/Relocations/aarch64/RadarSDKMotion.yml +0 -23
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Resources/DWARF/RadarSDKMotion +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Resources/Relocations/aarch64/RadarSDKMotion.yml +0 -23
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Resources/Relocations/x86_64/RadarSDKMotion.yml +0 -23
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarFraud.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2021 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
|
|
7
|
+
#import <Foundation/Foundation.h>
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
Represents fraud detection signals for location verification.
|
|
11
|
+
|
|
12
|
+
@warning Note that these values should not be trusted unless you called `trackVerified()` instead of `trackOnce()`.
|
|
13
|
+
|
|
14
|
+
@see https://radar.com/documentation/fraud
|
|
15
|
+
*/
|
|
16
|
+
@interface RadarFraud : NSObject
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
A boolean indicating whether the user passed fraud detection checks. May be `false` if Fraud is not enabled.
|
|
20
|
+
*/
|
|
21
|
+
@property (assign, nonatomic, readonly) bool passed;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
A boolean indicating whether fraud detection checks were bypassed for the user for testing. May be `false` if Fraud is not enabled.
|
|
25
|
+
*/
|
|
26
|
+
@property (assign, nonatomic, readonly) bool bypassed;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
A boolean indicating whether the request was made with SSL pinning configured successfully. May be `false` if Fraud is not enabled.
|
|
30
|
+
*/
|
|
31
|
+
@property (assign, nonatomic, readonly) bool verified;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
A boolean indicating whether the user's IP address is a known proxy. May be `false` if Fraud is not enabled.
|
|
35
|
+
*/
|
|
36
|
+
@property (assign, nonatomic, readonly) bool proxy;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
A boolean indicating whether the user's location is being mocked, such as in the simulator or using a location spoofing app. May be `false` if Fraud is not enabled.
|
|
40
|
+
*/
|
|
41
|
+
@property (assign, nonatomic, readonly) bool mocked;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
A boolean indicating whether the user's device or app has been compromised according to `DeviceCheck`. May be `false` if Fraud is not enabled.
|
|
45
|
+
|
|
46
|
+
@see https://developer.apple.com/documentation/devicecheck
|
|
47
|
+
*/
|
|
48
|
+
@property (assign, nonatomic, readonly) bool compromised;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
A boolean indicating whether the user moved too far too fast. May be `false` if Fraud is not enabled.
|
|
52
|
+
*/
|
|
53
|
+
@property (assign, nonatomic, readonly) bool jumped;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
A boolean indicating whether the user's location is not accurate enough. May be `false` if Fraud is not enabled.
|
|
57
|
+
*/
|
|
58
|
+
@property (assign, nonatomic, readonly) bool inaccurate;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
A boolean indicating whether the user's location is not accurate enough. May be `false` if Fraud is not enabled.
|
|
62
|
+
*/
|
|
63
|
+
@property (assign, nonatomic, readonly) bool sharing;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
A boolean indicating whether the user has been manually blocked. May be `false` if Fraud is not enabled.
|
|
67
|
+
*/
|
|
68
|
+
@property (assign, nonatomic, readonly) bool blocked;
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
72
|
+
|
|
73
|
+
@end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarGeofence.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "RadarGeofenceGeometry.h"
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import "RadarOperatingHours.h"
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
Represents a geofence.
|
|
14
|
+
|
|
15
|
+
@see https://radar.com/documentation/geofences
|
|
16
|
+
*/
|
|
17
|
+
@interface RadarGeofence : NSObject
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
The Radar ID of the geofence.
|
|
21
|
+
*/
|
|
22
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *_id;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
The description of the geofence. Not to be confused with the `NSObject` `description` property.
|
|
26
|
+
*/
|
|
27
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *__description;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
The tag of the geofence.
|
|
31
|
+
*/
|
|
32
|
+
@property (nullable, copy, nonatomic, readonly) NSString *tag;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
The external ID of the geofence.
|
|
36
|
+
*/
|
|
37
|
+
@property (nullable, copy, nonatomic, readonly) NSString *externalId;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
The optional set of custom key-value pairs for the geofence.
|
|
41
|
+
*/
|
|
42
|
+
@property (nullable, copy, nonatomic, readonly) NSDictionary *metadata;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
The geometry of the geofence, which can be cast to either `RadarCircleGeometry` or `RadarPolygonGeometry`.
|
|
46
|
+
*/
|
|
47
|
+
@property (nonnull, strong, nonatomic, readonly) RadarGeofenceGeometry *geometry;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
The optional operating hours for the geofence.
|
|
51
|
+
*/
|
|
52
|
+
@property (nullable, copy, nonatomic, readonly) RadarOperatingHours *operatingHours;
|
|
53
|
+
|
|
54
|
+
+ (NSArray<NSDictionary *> *_Nullable)arrayForGeofences:(NSArray<RadarGeofence *> *_Nullable)geofences;
|
|
55
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
56
|
+
|
|
57
|
+
@end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarGeofenceGeometry.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
Represents the geometry of a geofence.
|
|
12
|
+
*/
|
|
13
|
+
@interface RadarGeofenceGeometry : NSObject
|
|
14
|
+
|
|
15
|
+
@end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarInAppMessage.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2025 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
@interface RadarInAppMessage : NSObject
|
|
11
|
+
|
|
12
|
+
+ (RadarInAppMessage * _Nullable)fromDictionary:(NSDictionary<NSString *, id> * _Nonnull)dict;
|
|
13
|
+
|
|
14
|
+
+ (NSArray<RadarInAppMessage *> * _Nonnull)fromArray:(id _Nonnull)array;
|
|
15
|
+
|
|
16
|
+
- (NSDictionary<NSString *, id> * _Nonnull)toDictionary;
|
|
17
|
+
|
|
18
|
+
@end
|
package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInAppMessageDelegate.h
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarInAppMessageDelegate.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by ShiCheng Lu on 7/23/25.
|
|
6
|
+
// Copyright © 2025 Radar Labs, Inc. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <UIKit/UIkit.h>
|
|
11
|
+
#import "RadarInAppMessage.h"
|
|
12
|
+
|
|
13
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
+
|
|
15
|
+
typedef NS_ENUM(NSInteger, RadarInAppMessageOperation) {
|
|
16
|
+
RadarInAppMessageDisplay,
|
|
17
|
+
RadarInAppMessageDiscard,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
NS_SWIFT_UI_ACTOR
|
|
21
|
+
@protocol RadarInAppMessageProtocol <NSObject>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
- (void) onNewInAppMessage:(RadarInAppMessage * _Nonnull)message
|
|
25
|
+
NS_SWIFT_NAME(onNewInAppMessage(_:));
|
|
26
|
+
|
|
27
|
+
- (void) onInAppMessageDismissed:(RadarInAppMessage * _Nonnull)message
|
|
28
|
+
NS_SWIFT_NAME(onInAppMessageDismissed(_:));
|
|
29
|
+
|
|
30
|
+
- (void) onInAppMessageButtonClicked:(RadarInAppMessage * _Nonnull)message
|
|
31
|
+
NS_SWIFT_NAME(onInAppMessageButtonClicked(_:));
|
|
32
|
+
|
|
33
|
+
- (void) createInAppMessageView:(RadarInAppMessage * _Nonnull)message
|
|
34
|
+
onDismiss:(void (^)(void))onDismiss
|
|
35
|
+
onInAppMessageClicked:(void (^)(void))onInAppMessageClicked
|
|
36
|
+
completionHandler:(void (^)(UIViewController *))completionHandler
|
|
37
|
+
NS_SWIFT_NAME(createInAppMessageView(_:onDismiss:onInAppMessageClicked:completionHandler:));
|
|
38
|
+
|
|
39
|
+
@end
|
|
40
|
+
|
|
41
|
+
// This is the default implementation class
|
|
42
|
+
// you can override specific methods of this class instead of having to implement every method
|
|
43
|
+
// of the protocol
|
|
44
|
+
NS_SWIFT_NAME(RadarInAppMessageDelegate)
|
|
45
|
+
API_AVAILABLE(ios(13.0))
|
|
46
|
+
NS_SWIFT_UI_ACTOR
|
|
47
|
+
@interface RadarInAppMessageDelegate : NSObject <RadarInAppMessageProtocol>
|
|
48
|
+
|
|
49
|
+
- (instancetype) init;
|
|
50
|
+
|
|
51
|
+
@end
|
|
52
|
+
|
|
53
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarIndoorsProtocol.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2025 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <CoreLocation/CoreLocation.h>
|
|
10
|
+
#import "Radar.h"
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
@protocol RadarIndoorsProtocol<NSObject>
|
|
15
|
+
|
|
16
|
+
+ (void)startIndoorScan:(NSString *)geofenceId
|
|
17
|
+
forLength:(int)scanLengthSeconds
|
|
18
|
+
withKnownLocation:(CLLocation *_Nullable)knownLocation
|
|
19
|
+
completionHandler:(RadarIndoorsScanCompletionHandler)completionHandler;
|
|
20
|
+
|
|
21
|
+
@end
|
|
22
|
+
|
|
23
|
+
NS_ASSUME_NONNULL_END
|
package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInitializeOptions.h
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarInitializeOptions.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Kenny Hu on 9/10/24.
|
|
6
|
+
// Copyright © 2024 Radar Labs, Inc. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@interface RadarInitializeOptions : NSObject
|
|
13
|
+
|
|
14
|
+
@property (assign, nonatomic) BOOL autoLogNotificationConversions;
|
|
15
|
+
@property (assign, nonatomic) BOOL autoHandleNotificationDeepLinks;
|
|
16
|
+
@property (assign, nonatomic) BOOL silentPush;
|
|
17
|
+
|
|
18
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
19
|
+
- (instancetype _Nonnull)initWithDict:(NSDictionary *_Nullable)dict;
|
|
20
|
+
|
|
21
|
+
@end
|
|
22
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarMotion.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2024 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <CoreMotion/CoreMotion.h>
|
|
10
|
+
#import "Radar.h"
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
@protocol RadarMotionProtocol<NSObject>
|
|
15
|
+
|
|
16
|
+
- (void)startActivityUpdatesToQueue:(NSOperationQueue *)queue withHandler:(CMMotionActivityHandler)handler;
|
|
17
|
+
- (void)stopActivityUpdates;
|
|
18
|
+
- (void)startRelativeAltitudeUpdatesToQueue:(NSOperationQueue *) queue
|
|
19
|
+
withHandler:(CMAltitudeHandler) handler;
|
|
20
|
+
- (void)stopRelativeAltitudeUpdates;
|
|
21
|
+
- (void)startAbsoluteAltitudeUpdatesToQueue:(NSOperationQueue *) queue
|
|
22
|
+
withHandler:(CMAltitudeHandler) handler;
|
|
23
|
+
- (void)stopAbsoluteAltitudeUpdates;
|
|
24
|
+
+ (NSString *)stringForMotionAuthorization;
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarOperatingHour.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Kenny Hu on 10/7/24.
|
|
6
|
+
// Copyright © 2024 Radar Labs, Inc. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
@interface RadarOperatingHours : NSObject
|
|
12
|
+
|
|
13
|
+
@property (nonatomic, strong, readonly) NSDictionary<NSString *, NSArray<NSArray<NSString *> *> *> *hours;
|
|
14
|
+
|
|
15
|
+
@end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarPlace.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "RadarChain.h"
|
|
9
|
+
#import "RadarCoordinate.h"
|
|
10
|
+
#import "RadarAddress.h"
|
|
11
|
+
#import <CoreLocation/CoreLocation.h>
|
|
12
|
+
#import <Foundation/Foundation.h>
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
Represents a place.
|
|
16
|
+
|
|
17
|
+
@see https://radar.com/documentation/places
|
|
18
|
+
*/
|
|
19
|
+
@interface RadarPlace : NSObject
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
The Radar ID of the place.
|
|
23
|
+
*/
|
|
24
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *_id;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
The name of the place.
|
|
28
|
+
*/
|
|
29
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *name;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
The categories of the place. For a full list of categories, see https://radar.com/documentation/places/categories.
|
|
33
|
+
|
|
34
|
+
@see https://radar.com/documentation/places/categories
|
|
35
|
+
*/
|
|
36
|
+
@property (nonnull, copy, nonatomic, readonly) NSArray<NSString *> *categories;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
The chain of the place, if known. May be `nil` for places without a chain. For a full list of chains, see https://radar.com/documentation/places/chains.
|
|
40
|
+
|
|
41
|
+
@see https://radar.com/documentation/places/chains
|
|
42
|
+
*/
|
|
43
|
+
@property (nullable, strong, nonatomic, readonly) RadarChain *chain;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
The location of the place.
|
|
47
|
+
*/
|
|
48
|
+
@property (nonnull, strong, nonatomic, readonly) RadarCoordinate *location;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
The group for the place, if any. For a full list of groups, see https://radar.com/documentation/places/groups.
|
|
52
|
+
|
|
53
|
+
@see https://radar.com/documentation/places/groups
|
|
54
|
+
*/
|
|
55
|
+
@property (nullable, strong, nonatomic, readonly) NSString *group;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
The metadata for the place, if part of a group. For details of metadata fields see https://radar.com/documentation/places/groups.
|
|
59
|
+
|
|
60
|
+
@see https://radar.com/documentation/places/groups
|
|
61
|
+
*/
|
|
62
|
+
@property (nullable, strong, nonatomic, readonly) NSDictionary *metadata;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
The address of the place.
|
|
66
|
+
*/
|
|
67
|
+
@property (nullable, strong, nonatomic, readonly) RadarAddress *address;
|
|
68
|
+
/**
|
|
69
|
+
Returns a boolean indicating whether the place is part of the specified chain.
|
|
70
|
+
|
|
71
|
+
@return A boolean indicating whether the place is part of the specified chain.
|
|
72
|
+
**/
|
|
73
|
+
- (BOOL)isChain:(NSString *_Nullable)slug;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
Returns a boolean indicating whether the place has the specified category.
|
|
77
|
+
|
|
78
|
+
@return A boolean indicating whether the place has the specified category.
|
|
79
|
+
**/
|
|
80
|
+
- (BOOL)hasCategory:(NSString *_Nullable)category;
|
|
81
|
+
|
|
82
|
+
+ (NSArray<NSDictionary *> *_Nullable)arrayForPlaces:(NSArray<RadarPlace *> *_Nullable)places;
|
|
83
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
84
|
+
|
|
85
|
+
@end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarPolygonGeometry.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "RadarCoordinate.h"
|
|
9
|
+
#import "RadarGeofenceGeometry.h"
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
Represents the geometry of polygon geofence.
|
|
13
|
+
*/
|
|
14
|
+
@interface RadarPolygonGeometry : RadarGeofenceGeometry
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
The geometry of the polygon geofence. A closed ring of coordinates.
|
|
18
|
+
*/
|
|
19
|
+
@property (nullable, copy, nonatomic, readonly) NSArray<RadarCoordinate *> *_coordinates;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
The calculated centroid of the polygon geofence.
|
|
23
|
+
*/
|
|
24
|
+
@property (nonnull, strong, nonatomic, readonly) RadarCoordinate *center;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
The calculated radius of the polygon geofence in meters.
|
|
28
|
+
*/
|
|
29
|
+
@property (assign, nonatomic, readonly) double radius;
|
|
30
|
+
|
|
31
|
+
@end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarRegion.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
Represents a region.
|
|
14
|
+
|
|
15
|
+
@see https://radar.com/documentation/regions
|
|
16
|
+
*/
|
|
17
|
+
@interface RadarRegion : NSObject
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
The Radar ID of the region.
|
|
21
|
+
*/
|
|
22
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *_id;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
The name of the region.
|
|
26
|
+
*/
|
|
27
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *name;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
The unique code for the region.
|
|
31
|
+
*/
|
|
32
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *code;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
The type of the region.
|
|
36
|
+
*/
|
|
37
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *type;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
The optional flag of the region.
|
|
41
|
+
*/
|
|
42
|
+
@property (nullable, copy, nonatomic, readonly) NSString *flag;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
A boolean indicating whether the jurisdiction is allowed. May be `false` if Fraud is not enabled.
|
|
46
|
+
*/
|
|
47
|
+
@property (assign, nonatomic, readonly) BOOL allowed;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
A boolean indicating whether all jurisdiction checks for the region have passed. May be `false` if Fraud is not enabled.
|
|
51
|
+
*/
|
|
52
|
+
@property (assign, nonatomic, readonly) BOOL passed;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
A boolean indicating whether the user is in an exclusion zone for the jurisdiction. May be `false` if Fraud is not enabled.
|
|
56
|
+
*/
|
|
57
|
+
@property (assign, nonatomic, readonly) BOOL inExclusionZone;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
A boolean indicating whether the user is too close to the border for the jurisdiction. May be `false` if Fraud is not enabled.
|
|
61
|
+
*/
|
|
62
|
+
@property (assign, nonatomic, readonly) BOOL inBufferZone;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
The distance in meters to the border of the jurisdiction. May be 0 if Fraud is not enabled.
|
|
66
|
+
*/
|
|
67
|
+
@property (assign, nonatomic, readonly) double distanceToBorder;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
A boolean indicating whether the jurisdiction is expected based on the values passed to `setExpectedJurisdiction()`.
|
|
71
|
+
*/
|
|
72
|
+
@property (assign, nonatomic, readonly) BOOL expected;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
79
|
+
|
|
80
|
+
@end
|
|
81
|
+
|
|
82
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarRoute.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
#import "RadarRouteDistance.h"
|
|
11
|
+
#import "RadarRouteDuration.h"
|
|
12
|
+
#import "RadarRouteGeometry.h"
|
|
13
|
+
|
|
14
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
Represents a route between an origin and a destination.
|
|
18
|
+
|
|
19
|
+
@see https://radar.com/documentation/api#routing
|
|
20
|
+
*/
|
|
21
|
+
@interface RadarRoute : NSObject
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
The distance of the route.
|
|
25
|
+
*/
|
|
26
|
+
@property (nonnull, strong, nonatomic, readonly) RadarRouteDistance *distance;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
The duration of the route.
|
|
30
|
+
*/
|
|
31
|
+
@property (nonnull, strong, nonatomic, readonly) RadarRouteDuration *duration;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
The geometry of the route.
|
|
35
|
+
*/
|
|
36
|
+
@property (nonnull, strong, nonatomic, readonly) RadarRouteGeometry *geometry;
|
|
37
|
+
|
|
38
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
39
|
+
|
|
40
|
+
@end
|
|
41
|
+
|
|
42
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarRouteDistance.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
Represents the distance of a route.
|
|
14
|
+
*/
|
|
15
|
+
@interface RadarRouteDistance : NSObject
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
The distance in feet (for imperial units) or meters (for metric units).
|
|
19
|
+
*/
|
|
20
|
+
@property (assign, nonatomic, readonly) double value;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
A display string for the distance.
|
|
24
|
+
*/
|
|
25
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *text;
|
|
26
|
+
|
|
27
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
28
|
+
|
|
29
|
+
@end
|
|
30
|
+
|
|
31
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarRouteDuration.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
Represents the duration of a route.
|
|
14
|
+
*/
|
|
15
|
+
@interface RadarRouteDuration : NSObject
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
The duration in minutes.
|
|
19
|
+
*/
|
|
20
|
+
@property (assign, nonatomic, readonly) double value;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
A display string for the duration.
|
|
24
|
+
*/
|
|
25
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *text;
|
|
26
|
+
|
|
27
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
28
|
+
|
|
29
|
+
@end
|
|
30
|
+
|
|
31
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarRouteGeometry.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
#import "RadarCoordinate.h"
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
Represents the geometry of a route.
|
|
16
|
+
*/
|
|
17
|
+
@interface RadarRouteGeometry : NSObject
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
The geometry of the route.
|
|
21
|
+
*/
|
|
22
|
+
@property (nullable, copy, nonatomic, readonly) NSArray<RadarCoordinate *> *coordinates;
|
|
23
|
+
|
|
24
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarRouteMatrix.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2021 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "RadarRoute.h"
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
Represents routes between multiple origins and destinations.
|
|
15
|
+
|
|
16
|
+
@see https://radar.com/documentation/api#matrix
|
|
17
|
+
*/
|
|
18
|
+
@interface RadarRouteMatrix : NSObject
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
Returns the route between the specified origin and destination.
|
|
22
|
+
|
|
23
|
+
@param originIndex The index of the origin.
|
|
24
|
+
@param destinationIndex The index of the destination.
|
|
25
|
+
|
|
26
|
+
@return The route between the specified origin and destination.
|
|
27
|
+
*/
|
|
28
|
+
- (RadarRoute *_Nullable)routeBetweenOriginIndex:(NSUInteger)originIndex destinationIndex:(NSUInteger)destinationIndex NS_SWIFT_NAME(routeBetween(originIndex:destinationIndex:));
|
|
29
|
+
|
|
30
|
+
- (NSArray<NSArray<NSDictionary *> *> *_Nonnull)arrayValue;
|
|
31
|
+
|
|
32
|
+
@end
|
|
33
|
+
|
|
34
|
+
NS_ASSUME_NONNULL_END
|