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
package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDK.h
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarSDK.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2021 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
//! Project version number for RadarSDK.
|
|
11
|
+
FOUNDATION_EXPORT double RadarSDKVersionNumber;
|
|
12
|
+
|
|
13
|
+
//! Project version string for RadarSDK.
|
|
14
|
+
FOUNDATION_EXPORT const unsigned char RadarSDKVersionString[];
|
|
15
|
+
|
|
16
|
+
#import "Radar.h"
|
|
17
|
+
#import "RadarAddress.h"
|
|
18
|
+
#import "RadarChain.h"
|
|
19
|
+
#import "RadarCircleGeometry.h"
|
|
20
|
+
#import "RadarCoordinate.h"
|
|
21
|
+
#import "RadarDelegate.h"
|
|
22
|
+
#import "RadarEvent.h"
|
|
23
|
+
#import "RadarGeofence.h"
|
|
24
|
+
#import "RadarGeofenceGeometry.h"
|
|
25
|
+
#import "RadarPlace.h"
|
|
26
|
+
#import "RadarPolygonGeometry.h"
|
|
27
|
+
#import "RadarRegion.h"
|
|
28
|
+
#import "RadarRoute.h"
|
|
29
|
+
#import "RadarRouteDistance.h"
|
|
30
|
+
#import "RadarRouteDuration.h"
|
|
31
|
+
#import "RadarRouteGeometry.h"
|
|
32
|
+
#import "RadarRouteMode.h"
|
|
33
|
+
#import "RadarRoutes.h"
|
|
34
|
+
#import "RadarTrackingOptions.h"
|
|
35
|
+
#import "RadarTrip.h"
|
|
36
|
+
#import "RadarTripOptions.h"
|
|
37
|
+
#import "RadarTripOrder.h"
|
|
38
|
+
#import "RadarUser.h"
|
|
39
|
+
#import "RadarVerifiedDelegate.h"
|
|
40
|
+
#import "RadarMotionProtocol.h"
|
|
41
|
+
#import "RadarSdkConfiguration.h"
|
|
42
|
+
#import "RadarInAppMessage.h"
|
|
43
|
+
#import "RadarInAppMessageDelegate.h"
|
|
44
|
+
#import "Radar-Swift.h"
|
|
45
|
+
#import "RadarIndoorsProtocol.h"
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarSdkConfiguration.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2023 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import "Radar.h"
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
Represents server-side sdk configuration.
|
|
15
|
+
|
|
16
|
+
@see https://radar.com/documentation/sdk/ios
|
|
17
|
+
*/
|
|
18
|
+
@interface RadarSdkConfiguration : NSObject
|
|
19
|
+
|
|
20
|
+
@property (nonatomic, assign) RadarLogLevel logLevel;
|
|
21
|
+
|
|
22
|
+
@property (nonatomic, assign) BOOL startTrackingOnInitialize;
|
|
23
|
+
|
|
24
|
+
@property (nonatomic, assign) BOOL trackOnceOnAppOpen;
|
|
25
|
+
|
|
26
|
+
@property (nonatomic, assign) BOOL usePersistence;
|
|
27
|
+
|
|
28
|
+
@property (nonatomic, assign) BOOL extendFlushReplays;
|
|
29
|
+
|
|
30
|
+
@property (nonatomic, assign) BOOL useLogPersistence;
|
|
31
|
+
|
|
32
|
+
@property (nonatomic, assign) BOOL useRadarModifiedBeacon;
|
|
33
|
+
|
|
34
|
+
@property (nonatomic, assign) BOOL useOpenedAppConversion;
|
|
35
|
+
|
|
36
|
+
@property (nonatomic, assign) BOOL useForegroundLocationUpdatedAtMsDiff;
|
|
37
|
+
|
|
38
|
+
@property (nonatomic, assign) BOOL useNotificationDiff;
|
|
39
|
+
|
|
40
|
+
@property (nonatomic, assign) BOOL syncAfterSetUser;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
Initializes a new RadarSdkConfiguration object with given value.
|
|
44
|
+
*/
|
|
45
|
+
- (instancetype)initWithDict:(NSDictionary *_Nullable)dict;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
Returns a dictionary representation of the object.
|
|
49
|
+
*/
|
|
50
|
+
- (NSDictionary *)dictionaryValue;
|
|
51
|
+
|
|
52
|
+
+ (void)updateSdkConfigurationFromServer;
|
|
53
|
+
|
|
54
|
+
@end
|
|
55
|
+
|
|
56
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarSegment.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 user segment.
|
|
14
|
+
*/
|
|
15
|
+
@interface RadarSegment : NSObject
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
The description of the segment.
|
|
19
|
+
*/
|
|
20
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *__description;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
The external ID of the segment.
|
|
24
|
+
*/
|
|
25
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *externalId;
|
|
26
|
+
|
|
27
|
+
+ (NSArray<NSDictionary *> *_Nullable)arrayForSegments:(NSArray<RadarSegment *> *_Nullable)segments;
|
|
28
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
29
|
+
|
|
30
|
+
@end
|
|
31
|
+
|
|
32
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarTimeZone.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2024 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
Represents a time zone.
|
|
14
|
+
@see https://radar.com/documentation/api#geocoding
|
|
15
|
+
*/
|
|
16
|
+
@interface RadarTimeZone : NSObject
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
The ID of the time zone.
|
|
20
|
+
*/
|
|
21
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *_id;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
The name of of the time zone.
|
|
25
|
+
*/
|
|
26
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *name;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
The time zone abbreviation.
|
|
30
|
+
*/
|
|
31
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *code;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
The current time for the time zone.
|
|
35
|
+
*/
|
|
36
|
+
@property (nonnull, copy, nonatomic, readonly) NSDate *currentTime;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
The UTC offset for the time zone.
|
|
40
|
+
*/
|
|
41
|
+
@property (assign, nonatomic, readonly) int utcOffset;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
The DST offset for the time zone.
|
|
45
|
+
*/
|
|
46
|
+
@property (assign, nonatomic, readonly) int dstOffset;
|
|
47
|
+
|
|
48
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
49
|
+
|
|
50
|
+
@end
|
|
51
|
+
|
|
52
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarTrackingOptions.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <CoreLocation/CoreLocation.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
The location accuracy options.
|
|
15
|
+
*/
|
|
16
|
+
typedef NS_ENUM(NSInteger, RadarTrackingOptionsDesiredAccuracy) {
|
|
17
|
+
/// Uses `kCLLocationAccuracyBest`
|
|
18
|
+
RadarTrackingOptionsDesiredAccuracyHigh,
|
|
19
|
+
/// Uses `kCLLocationAccuracyHundredMeters`, the default
|
|
20
|
+
RadarTrackingOptionsDesiredAccuracyMedium,
|
|
21
|
+
/// Uses `kCLLocationAccuracyKilometer`
|
|
22
|
+
RadarTrackingOptionsDesiredAccuracyLow
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
The replay options for failed location updates.
|
|
27
|
+
*/
|
|
28
|
+
typedef NS_ENUM(NSInteger, RadarTrackingOptionsReplay) {
|
|
29
|
+
/// Replays failed stops
|
|
30
|
+
RadarTrackingOptionsReplayStops,
|
|
31
|
+
/// Replays no failed location updates
|
|
32
|
+
RadarTrackingOptionsReplayNone,
|
|
33
|
+
/// Replays all failed location updates
|
|
34
|
+
RadarTrackingOptionsReplayAll
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
The sync options for location updates.
|
|
39
|
+
*/
|
|
40
|
+
typedef NS_ENUM(NSInteger, RadarTrackingOptionsSyncLocations) {
|
|
41
|
+
/// Syncs all location updates to the server
|
|
42
|
+
RadarTrackingOptionsSyncAll,
|
|
43
|
+
/// Syncs only stops and exits to the server
|
|
44
|
+
RadarTrackingOptionsSyncStopsAndExits,
|
|
45
|
+
/// Syncs no location updates to the server
|
|
46
|
+
RadarTrackingOptionsSyncNone
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
An options class used to configure background tracking.
|
|
51
|
+
@see https://radar.com/documentation/sdk/ios
|
|
52
|
+
*/
|
|
53
|
+
@interface RadarTrackingOptions : NSObject
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
Determines the desired location update interval in seconds when stopped. Use 0 to shut down when stopped.
|
|
57
|
+
@warning Note that location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or wi-fi disabled.
|
|
58
|
+
*/
|
|
59
|
+
@property (nonatomic, assign) int desiredStoppedUpdateInterval;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
Determines the desired location update interval in seconds when moving.
|
|
63
|
+
@warning Note that location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or wi-fi disabled.
|
|
64
|
+
*/
|
|
65
|
+
@property (nonatomic, assign) int desiredMovingUpdateInterval;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
Determines the desired sync interval in seconds.
|
|
69
|
+
*/
|
|
70
|
+
@property (nonatomic, assign) int desiredSyncInterval;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
Determines the desired accuracy of location updates.
|
|
74
|
+
*/
|
|
75
|
+
@property (nonatomic, assign) RadarTrackingOptionsDesiredAccuracy desiredAccuracy;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
With `stopDistance`, determines the duration in seconds after which the device is considered stopped.
|
|
79
|
+
*/
|
|
80
|
+
@property (nonatomic, assign) int stopDuration;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
With `stopDuration`, determines the distance in meters within which the device is considered stopped.
|
|
84
|
+
*/
|
|
85
|
+
@property (nonatomic, assign) int stopDistance;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
Determines when to start tracking. Use `nil` to start tracking when `startTracking` is called.
|
|
89
|
+
*/
|
|
90
|
+
@property (nullable, nonatomic, copy) NSDate *startTrackingAfter;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
Determines when to stop tracking. Use `nil` to track until `stopTracking` is called.
|
|
94
|
+
*/
|
|
95
|
+
@property (nullable, nonatomic, copy) NSDate *stopTrackingAfter;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
Determines which failed location updates to replay to the server.
|
|
99
|
+
*/
|
|
100
|
+
@property (nonatomic, assign) RadarTrackingOptionsReplay replay;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
Determines which location updates to sync to the server.
|
|
104
|
+
*/
|
|
105
|
+
@property (nonatomic, assign) RadarTrackingOptionsSyncLocations syncLocations;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
Determines whether the flashing blue status bar is shown when tracking.
|
|
109
|
+
@see https://developer.apple.com/documentation/corelocation/cllocationmanager/2923541-showsbackgroundlocationindicator
|
|
110
|
+
*/
|
|
111
|
+
@property (nonatomic, assign) BOOL showBlueBar;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
Determines whether to use the iOS region monitoring service (geofencing) to create a client geofence around the device's current location when stopped.
|
|
115
|
+
@see https://developer.apple.com/documentation/corelocation/monitoring_the_user_s_proximity_to_geographic_regions
|
|
116
|
+
*/
|
|
117
|
+
@property (nonatomic, assign) BOOL useStoppedGeofence;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
Determines the radius in meters of the client geofence around the device's current location when stopped.
|
|
121
|
+
*/
|
|
122
|
+
@property (nonatomic, assign) int stoppedGeofenceRadius;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
Determines whether to use the iOS region monitoring service (geofencing) to create a client geofence around the device's current location when moving.
|
|
126
|
+
@see https://developer.apple.com/documentation/corelocation/monitoring_the_user_s_proximity_to_geographic_regions
|
|
127
|
+
*/
|
|
128
|
+
@property (nonatomic, assign) BOOL useMovingGeofence;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
Determines the radius in meters of the client geofence around the device's current location when moving.
|
|
132
|
+
*/
|
|
133
|
+
@property (nonatomic, assign) int movingGeofenceRadius;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
Determines whether to sync nearby geofences from the server to the client to improve responsiveness.
|
|
137
|
+
*/
|
|
138
|
+
@property (nonatomic, assign) BOOL syncGeofences;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
Determines whether to use the iOS visit monitoring service.
|
|
142
|
+
@see https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/using_the_visits_location_service
|
|
143
|
+
*/
|
|
144
|
+
@property (nonatomic, assign) BOOL useVisits;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
Determines whether to use the iOS significant location change service.
|
|
148
|
+
@see https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/using_the_significant-change_location_service
|
|
149
|
+
*/
|
|
150
|
+
@property (nonatomic, assign) BOOL useSignificantLocationChanges;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
Determines whether to monitor beacons.
|
|
154
|
+
*/
|
|
155
|
+
@property (nonatomic, assign) BOOL beacons;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
Determines whether to use indoor scanning
|
|
159
|
+
*/
|
|
160
|
+
@property (nonatomic, assign) BOOL useIndoorScan;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
Determines whether to use the iOS motion activity service.
|
|
164
|
+
*/
|
|
165
|
+
@property (nonatomic, assign) BOOL useMotion;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
Determines whether to use the iOS pressure service.
|
|
169
|
+
*/
|
|
170
|
+
@property (nonatomic, assign) BOOL usePressure;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
Updates about every 30 seconds while moving or stopped. Moderate battery usage. Shows the flashing blue status bar during tracking.
|
|
174
|
+
@see https://developer.apple.com/documentation/corelocation/cllocationmanager/2923541-showsbackgroundlocationindicator
|
|
175
|
+
*/
|
|
176
|
+
@property (class, copy, readonly) RadarTrackingOptions *presetContinuous;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
Updates about every 2.5 minutes when moving and shuts down when stopped to save battery. Once stopped, the device will need to move more than 100 meters to wake up and start
|
|
180
|
+
moving again. Low battery usage. Requires the `location` background mode.
|
|
181
|
+
Note that location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or wi-fi disabled.
|
|
182
|
+
*/
|
|
183
|
+
@property (class, copy, readonly) RadarTrackingOptions *presetResponsive;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
Uses the iOS visit monitoring service to update only on stops and exits. Once stopped, the device will need to move several hundred meters and trigger a visit departure to wake up
|
|
187
|
+
and start moving again. Lowest battery usage.
|
|
188
|
+
Note that location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or wi-fi disabled.
|
|
189
|
+
@see https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/using_the_visits_location_service
|
|
190
|
+
*/
|
|
191
|
+
@property (class, copy, readonly) RadarTrackingOptions *presetEfficient;
|
|
192
|
+
|
|
193
|
+
+ (NSString *)stringForDesiredAccuracy:(RadarTrackingOptionsDesiredAccuracy)desiredAccuracy;
|
|
194
|
+
+ (RadarTrackingOptionsDesiredAccuracy)desiredAccuracyForString:(NSString *)str;
|
|
195
|
+
+ (NSString *)stringForReplay:(RadarTrackingOptionsReplay)replay;
|
|
196
|
+
+ (RadarTrackingOptionsReplay)replayForString:(NSString *)str;
|
|
197
|
+
+ (NSString *)stringForSyncLocations:(RadarTrackingOptionsSyncLocations)syncLocations;
|
|
198
|
+
+ (RadarTrackingOptionsSyncLocations)syncLocationsForString:(NSString *)str;
|
|
199
|
+
+ (RadarTrackingOptions *_Nullable)trackingOptionsFromDictionary:(NSDictionary *_Nonnull)dictionary;
|
|
200
|
+
- (NSDictionary *)dictionaryValue;
|
|
201
|
+
|
|
202
|
+
@end
|
|
203
|
+
|
|
204
|
+
NS_ASSUME_NONNULL_END
|
package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTrip.h
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarTrip.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "RadarCoordinate.h"
|
|
9
|
+
#import "RadarRouteMode.h"
|
|
10
|
+
#import "RadarTripOrder.h"
|
|
11
|
+
#import <Foundation/Foundation.h>
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
Represents a trip.
|
|
15
|
+
|
|
16
|
+
@see https://radar.com/documentation/trip-tracking
|
|
17
|
+
*/
|
|
18
|
+
@interface RadarTrip : NSObject
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
The statuses for trips.
|
|
22
|
+
*/
|
|
23
|
+
typedef NS_ENUM(NSInteger, RadarTripStatus) {
|
|
24
|
+
/// Unknown
|
|
25
|
+
RadarTripStatusUnknown NS_SWIFT_NAME(unknown),
|
|
26
|
+
/// `started`
|
|
27
|
+
RadarTripStatusStarted NS_SWIFT_NAME(started),
|
|
28
|
+
/// `approaching`
|
|
29
|
+
RadarTripStatusApproaching NS_SWIFT_NAME(approaching),
|
|
30
|
+
/// `arrived`
|
|
31
|
+
RadarTripStatusArrived NS_SWIFT_NAME(arrived),
|
|
32
|
+
/// `expired`
|
|
33
|
+
RadarTripStatusExpired NS_SWIFT_NAME(expired),
|
|
34
|
+
/// `completed`
|
|
35
|
+
RadarTripStatusCompleted NS_SWIFT_NAME(completed),
|
|
36
|
+
/// `canceled`
|
|
37
|
+
RadarTripStatusCanceled NS_SWIFT_NAME(canceled)
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
The Radar ID of the trip.
|
|
42
|
+
*/
|
|
43
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *_id;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
The external ID of the trip.
|
|
47
|
+
*/
|
|
48
|
+
@property (nullable, copy, nonatomic, readonly) NSString *externalId;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
The optional set of custom key-value pairs for the trip.
|
|
52
|
+
*/
|
|
53
|
+
@property (nullable, copy, nonatomic, readonly) NSDictionary *metadata;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
For trips with a destination, the tag of the destination geofence.
|
|
57
|
+
*/
|
|
58
|
+
@property (nullable, copy, nonatomic, readonly) NSString *destinationGeofenceTag;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
For trips with a destination, the external ID of the destination geofence.
|
|
62
|
+
*/
|
|
63
|
+
@property (nullable, copy, nonatomic, readonly) NSString *destinationGeofenceExternalId;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
For trips with a destination, the location of the destination geofence.
|
|
67
|
+
*/
|
|
68
|
+
@property (nullable, strong, nonatomic, readonly) RadarCoordinate *destinationLocation;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
The travel mode for the trip.
|
|
72
|
+
*/
|
|
73
|
+
@property (assign, nonatomic, readonly) RadarRouteMode mode;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
For trips with a destination, the distance to the destination geofence in meters based on the travel mode for the trip.
|
|
77
|
+
*/
|
|
78
|
+
@property (assign, nonatomic, readonly) float etaDistance;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
For trips with a destination, the ETA to the destination geofence in minutes based on the travel mode for the trip.
|
|
82
|
+
*/
|
|
83
|
+
@property (assign, nonatomic, readonly) float etaDuration;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
The status of the trip.
|
|
87
|
+
*/
|
|
88
|
+
@property (assign, nonatomic, readonly) RadarTripStatus status;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
The optional array of trip orders associated with this trip.
|
|
92
|
+
*/
|
|
93
|
+
@property (nullable, copy, nonatomic, readonly) NSArray<RadarTripOrder *> *orders;
|
|
94
|
+
|
|
95
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
96
|
+
|
|
97
|
+
@end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarTripOptions.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
#import "RadarRouteMode.h"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
An options class used to configure trip tracking.
|
|
17
|
+
|
|
18
|
+
@see https://radar.com/documentation/sdk/ios
|
|
19
|
+
*/
|
|
20
|
+
@interface RadarTripOptions : NSObject
|
|
21
|
+
|
|
22
|
+
- (instancetype)initWithExternalId:(NSString *_Nonnull)externalId
|
|
23
|
+
destinationGeofenceTag:(NSString *_Nullable)destinationGeofenceTag
|
|
24
|
+
destinationGeofenceExternalId:(NSString *_Nullable)destinationGeofenceExternalId;
|
|
25
|
+
|
|
26
|
+
- (instancetype)initWithExternalId:(NSString *_Nonnull)externalId
|
|
27
|
+
destinationGeofenceTag:(NSString *_Nullable)destinationGeofenceTag
|
|
28
|
+
destinationGeofenceExternalId:(NSString *_Nullable)destinationGeofenceExternalId
|
|
29
|
+
scheduledArrivalAt:(NSDate *_Nullable)scheduledArrivalAt;
|
|
30
|
+
|
|
31
|
+
- (instancetype)initWithExternalId:(NSString *_Nonnull)externalId
|
|
32
|
+
destinationGeofenceTag:(NSString *_Nullable)destinationGeofenceTag
|
|
33
|
+
destinationGeofenceExternalId:(NSString *_Nullable)destinationGeofenceExternalId
|
|
34
|
+
scheduledArrivalAt:(NSDate *_Nullable)scheduledArrivalAt
|
|
35
|
+
startTracking:(BOOL)startTracking;
|
|
36
|
+
/**
|
|
37
|
+
A stable unique ID for the trip.
|
|
38
|
+
*/
|
|
39
|
+
@property (nonnull, nonatomic, copy) NSString *externalId;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
An optional set of custom key-value pairs for the trip.
|
|
43
|
+
*/
|
|
44
|
+
@property (nullable, nonatomic, copy) NSDictionary *metadata;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
For trips with a destination, the tag of the destination geofence.
|
|
48
|
+
*/
|
|
49
|
+
@property (nullable, nonatomic, copy) NSString *destinationGeofenceTag;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
For trips with a destination, the external ID of the destination geofence.
|
|
53
|
+
*/
|
|
54
|
+
@property (nullable, nonatomic, copy) NSString *destinationGeofenceExternalId;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The scheduled arrival time for the trip.
|
|
58
|
+
*/
|
|
59
|
+
@property (nullable, nonatomic, copy) NSDate *scheduledArrivalAt;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
For trips with a destination, the travel mode.
|
|
63
|
+
*/
|
|
64
|
+
@property (nonatomic, assign) RadarRouteMode mode;
|
|
65
|
+
|
|
66
|
+
@property (nonatomic, assign) UInt16 approachingThreshold;
|
|
67
|
+
|
|
68
|
+
@property (nonatomic, assign) BOOL startTracking;
|
|
69
|
+
|
|
70
|
+
+ (RadarTripOptions *_Nullable)tripOptionsFromDictionary:(NSDictionary *)dict;
|
|
71
|
+
- (NSDictionary *)dictionaryValue;
|
|
72
|
+
|
|
73
|
+
@end
|
|
74
|
+
|
|
75
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarTripOrder.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2024 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
The statuses for trip orders.
|
|
12
|
+
*/
|
|
13
|
+
typedef NS_ENUM(NSInteger, RadarTripOrderStatus) {
|
|
14
|
+
/// Unknown
|
|
15
|
+
RadarTripOrderStatusUnknown NS_SWIFT_NAME(unknown),
|
|
16
|
+
/// Pending
|
|
17
|
+
RadarTripOrderStatusPending NS_SWIFT_NAME(pending),
|
|
18
|
+
/// Fired
|
|
19
|
+
RadarTripOrderStatusFired NS_SWIFT_NAME(fired),
|
|
20
|
+
/// Canceled
|
|
21
|
+
RadarTripOrderStatusCanceled NS_SWIFT_NAME(canceled),
|
|
22
|
+
/// Completed
|
|
23
|
+
RadarTripOrderStatusCompleted NS_SWIFT_NAME(completed)
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
Represents a trip order.
|
|
28
|
+
*/
|
|
29
|
+
@interface RadarTripOrder : NSObject
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
The ID of the trip order.
|
|
33
|
+
*/
|
|
34
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *_id;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
The optional GUID of the trip order.
|
|
38
|
+
*/
|
|
39
|
+
@property (nullable, copy, nonatomic, readonly) NSString *guid;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
The optional handoff mode of the trip order.
|
|
43
|
+
*/
|
|
44
|
+
@property (nullable, copy, nonatomic, readonly) NSString *handoffMode;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
The status of the trip order.
|
|
48
|
+
*/
|
|
49
|
+
@property (assign, nonatomic, readonly) RadarTripOrderStatus status;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
The optional date when the order was fired.
|
|
53
|
+
*/
|
|
54
|
+
@property (nullable, strong, nonatomic, readonly) NSDate *firedAt;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
The optional number of fired attempts.
|
|
58
|
+
*/
|
|
59
|
+
@property (nullable, strong, nonatomic, readonly) NSNumber *firedAttempts;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
The optional reason why the order was fired.
|
|
63
|
+
*/
|
|
64
|
+
@property (nullable, copy, nonatomic, readonly) NSString *firedReason;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
The date when the order was last updated.
|
|
68
|
+
*/
|
|
69
|
+
@property (nonnull, strong, nonatomic, readonly) NSDate *updatedAt;
|
|
70
|
+
|
|
71
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
72
|
+
|
|
73
|
+
@end
|
|
74
|
+
|
|
75
|
+
@interface RadarTripOrder ()
|
|
76
|
+
|
|
77
|
+
- (instancetype _Nullable)initWithId:(NSString *_Nonnull)_id
|
|
78
|
+
guid:(NSString *_Nullable)guid
|
|
79
|
+
handoffMode:(NSString *_Nullable)handoffMode
|
|
80
|
+
status:(RadarTripOrderStatus)status
|
|
81
|
+
firedAt:(NSDate *_Nullable)firedAt
|
|
82
|
+
firedAttempts:(NSNumber *_Nullable)firedAttempts
|
|
83
|
+
firedReason:(NSString *_Nullable)firedReason
|
|
84
|
+
updatedAt:(NSDate *_Nonnull)updatedAt;
|
|
85
|
+
|
|
86
|
+
- (instancetype _Nullable)initWithObject:(id _Nonnull)object;
|
|
87
|
+
|
|
88
|
+
+ (NSArray<RadarTripOrder *> *_Nullable)ordersFromObject:(id _Nonnull)object;
|
|
89
|
+
+ (NSArray<NSDictionary *> *_Nullable)arrayForOrders:(NSArray<RadarTripOrder *> *_Nullable)orders;
|
|
90
|
+
|
|
91
|
+
@end
|