react-native-radar 3.30.0-beta.2 → 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/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/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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// RadarRouteMode.h
|
|
2
|
+
#import <Foundation/Foundation.h>
|
|
3
|
+
|
|
4
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
5
|
+
|
|
6
|
+
/** The travel modes for routes.
|
|
7
|
+
@see https://radar.com/documentation/api#routing
|
|
8
|
+
*/
|
|
9
|
+
typedef NS_OPTIONS(NSInteger, RadarRouteMode) {
|
|
10
|
+
/// Foot
|
|
11
|
+
RadarRouteModeFoot NS_SWIFT_NAME(foot) = 1 << 0,
|
|
12
|
+
/// Bike
|
|
13
|
+
RadarRouteModeBike NS_SWIFT_NAME(bike) = 1 << 1,
|
|
14
|
+
/// Car
|
|
15
|
+
RadarRouteModeCar NS_SWIFT_NAME(car) = 1 << 2,
|
|
16
|
+
/// Truck
|
|
17
|
+
RadarRouteModeTruck NS_SWIFT_NAME(truck) = 1 << 3,
|
|
18
|
+
/// Motorbike
|
|
19
|
+
RadarRouteModeMotorbike NS_SWIFT_NAME(motorbike) = 1 << 4
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
@interface RadarRouteModeUtils : NSObject
|
|
23
|
+
|
|
24
|
+
/** Returns a display string for a travel mode value.
|
|
25
|
+
@param mode A travel mode value.
|
|
26
|
+
@return A display string for the travel mode value.
|
|
27
|
+
*/
|
|
28
|
+
+ (NSString *)stringForMode:(RadarRouteMode)mode NS_SWIFT_NAME(stringForMode(_:));
|
|
29
|
+
|
|
30
|
+
@end
|
|
31
|
+
|
|
32
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarRoutes.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 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 from an origin to a destination.
|
|
15
|
+
|
|
16
|
+
@see https://radar.com/documentation/api#distance
|
|
17
|
+
*/
|
|
18
|
+
@interface RadarRoutes : NSObject
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
The geodesic distance between the origin and destination.
|
|
22
|
+
*/
|
|
23
|
+
@property (nullable, strong, nonatomic, readonly) RadarRouteDistance *geodesic;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
The route by foot between the origin and destination. May be `nil` if mode not specified or route unavailable.
|
|
27
|
+
*/
|
|
28
|
+
@property (nullable, strong, nonatomic, readonly) RadarRoute *foot;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
The route by bike between the origin and destination. May be `nil` if mode not specified or route unavailable.
|
|
32
|
+
*/
|
|
33
|
+
@property (nullable, strong, nonatomic, readonly) RadarRoute *bike;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
The route by car between the origin and destination. May be `nil` if mode not specified or route unavailable.
|
|
37
|
+
*/
|
|
38
|
+
@property (nullable, strong, nonatomic, readonly) RadarRoute *car;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
The route by truck between the origin and destination. May be `nil` if mode not specified or route unavailable.
|
|
42
|
+
*/
|
|
43
|
+
@property (nullable, strong, nonatomic, readonly) RadarRoute *truck;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
The route by motorbike between the origin and destination. May be `nil` if mode not specified or route unavailable.
|
|
47
|
+
*/
|
|
48
|
+
@property (nullable, strong, nonatomic, readonly) RadarRoute *motorbike;
|
|
49
|
+
|
|
50
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
51
|
+
|
|
52
|
+
@end
|
|
53
|
+
|
|
54
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
#if 0
|
|
2
|
+
#elif defined(__arm64__) && __arm64__
|
|
3
|
+
// Generated by Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
|
4
|
+
#ifndef RADARSDK_SWIFT_H
|
|
5
|
+
#define RADARSDK_SWIFT_H
|
|
6
|
+
#pragma clang diagnostic push
|
|
7
|
+
#pragma clang diagnostic ignored "-Wgcc-compat"
|
|
8
|
+
|
|
9
|
+
#if !defined(__has_include)
|
|
10
|
+
# define __has_include(x) 0
|
|
11
|
+
#endif
|
|
12
|
+
#if !defined(__has_attribute)
|
|
13
|
+
# define __has_attribute(x) 0
|
|
14
|
+
#endif
|
|
15
|
+
#if !defined(__has_feature)
|
|
16
|
+
# define __has_feature(x) 0
|
|
17
|
+
#endif
|
|
18
|
+
#if !defined(__has_warning)
|
|
19
|
+
# define __has_warning(x) 0
|
|
20
|
+
#endif
|
|
21
|
+
|
|
22
|
+
#if __has_include(<swift/objc-prologue.h>)
|
|
23
|
+
# include <swift/objc-prologue.h>
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
#pragma clang diagnostic ignored "-Wauto-import"
|
|
27
|
+
#if defined(__OBJC__)
|
|
28
|
+
#include <Foundation/Foundation.h>
|
|
29
|
+
#endif
|
|
30
|
+
#if defined(__cplusplus)
|
|
31
|
+
#include <cstdint>
|
|
32
|
+
#include <cstddef>
|
|
33
|
+
#include <cstdbool>
|
|
34
|
+
#include <cstring>
|
|
35
|
+
#include <stdlib.h>
|
|
36
|
+
#include <new>
|
|
37
|
+
#include <type_traits>
|
|
38
|
+
#else
|
|
39
|
+
#include <stdint.h>
|
|
40
|
+
#include <stddef.h>
|
|
41
|
+
#include <stdbool.h>
|
|
42
|
+
#include <string.h>
|
|
43
|
+
#endif
|
|
44
|
+
#if defined(__cplusplus)
|
|
45
|
+
#pragma clang diagnostic push
|
|
46
|
+
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
|
47
|
+
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
|
48
|
+
# include <ptrauth.h>
|
|
49
|
+
#else
|
|
50
|
+
#pragma clang diagnostic push
|
|
51
|
+
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
|
|
52
|
+
# ifndef __ptrauth_swift_value_witness_function_pointer
|
|
53
|
+
# define __ptrauth_swift_value_witness_function_pointer(x)
|
|
54
|
+
# endif
|
|
55
|
+
# ifndef __ptrauth_swift_class_method_pointer
|
|
56
|
+
# define __ptrauth_swift_class_method_pointer(x)
|
|
57
|
+
# endif
|
|
58
|
+
#pragma clang diagnostic pop
|
|
59
|
+
#endif
|
|
60
|
+
#pragma clang diagnostic pop
|
|
61
|
+
#endif
|
|
62
|
+
|
|
63
|
+
#if !defined(SWIFT_TYPEDEFS)
|
|
64
|
+
# define SWIFT_TYPEDEFS 1
|
|
65
|
+
# if __has_include(<uchar.h>)
|
|
66
|
+
# include <uchar.h>
|
|
67
|
+
# elif !defined(__cplusplus)
|
|
68
|
+
typedef unsigned char char8_t;
|
|
69
|
+
typedef uint_least16_t char16_t;
|
|
70
|
+
typedef uint_least32_t char32_t;
|
|
71
|
+
# endif
|
|
72
|
+
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
|
73
|
+
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
|
74
|
+
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
|
75
|
+
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
|
76
|
+
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
|
77
|
+
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
|
78
|
+
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
|
79
|
+
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
|
80
|
+
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
|
81
|
+
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
|
82
|
+
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
|
83
|
+
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
84
|
+
#endif
|
|
85
|
+
|
|
86
|
+
#if !defined(SWIFT_PASTE)
|
|
87
|
+
# define SWIFT_PASTE_HELPER(x, y) x##y
|
|
88
|
+
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
|
89
|
+
#endif
|
|
90
|
+
#if !defined(SWIFT_METATYPE)
|
|
91
|
+
# define SWIFT_METATYPE(X) Class
|
|
92
|
+
#endif
|
|
93
|
+
#if !defined(SWIFT_CLASS_PROPERTY)
|
|
94
|
+
# if __has_feature(objc_class_property)
|
|
95
|
+
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
|
96
|
+
# else
|
|
97
|
+
# define SWIFT_CLASS_PROPERTY(...)
|
|
98
|
+
# endif
|
|
99
|
+
#endif
|
|
100
|
+
#if !defined(SWIFT_RUNTIME_NAME)
|
|
101
|
+
# if __has_attribute(objc_runtime_name)
|
|
102
|
+
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
|
103
|
+
# else
|
|
104
|
+
# define SWIFT_RUNTIME_NAME(X)
|
|
105
|
+
# endif
|
|
106
|
+
#endif
|
|
107
|
+
#if !defined(SWIFT_COMPILE_NAME)
|
|
108
|
+
# if __has_attribute(swift_name)
|
|
109
|
+
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
|
110
|
+
# else
|
|
111
|
+
# define SWIFT_COMPILE_NAME(X)
|
|
112
|
+
# endif
|
|
113
|
+
#endif
|
|
114
|
+
#if !defined(SWIFT_METHOD_FAMILY)
|
|
115
|
+
# if __has_attribute(objc_method_family)
|
|
116
|
+
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
|
117
|
+
# else
|
|
118
|
+
# define SWIFT_METHOD_FAMILY(X)
|
|
119
|
+
# endif
|
|
120
|
+
#endif
|
|
121
|
+
#if !defined(SWIFT_NOESCAPE)
|
|
122
|
+
# if __has_attribute(noescape)
|
|
123
|
+
# define SWIFT_NOESCAPE __attribute__((noescape))
|
|
124
|
+
# else
|
|
125
|
+
# define SWIFT_NOESCAPE
|
|
126
|
+
# endif
|
|
127
|
+
#endif
|
|
128
|
+
#if !defined(SWIFT_RELEASES_ARGUMENT)
|
|
129
|
+
# if __has_attribute(ns_consumed)
|
|
130
|
+
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
|
131
|
+
# else
|
|
132
|
+
# define SWIFT_RELEASES_ARGUMENT
|
|
133
|
+
# endif
|
|
134
|
+
#endif
|
|
135
|
+
#if !defined(SWIFT_WARN_UNUSED_RESULT)
|
|
136
|
+
# if __has_attribute(warn_unused_result)
|
|
137
|
+
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
|
138
|
+
# else
|
|
139
|
+
# define SWIFT_WARN_UNUSED_RESULT
|
|
140
|
+
# endif
|
|
141
|
+
#endif
|
|
142
|
+
#if !defined(SWIFT_NORETURN)
|
|
143
|
+
# if __has_attribute(noreturn)
|
|
144
|
+
# define SWIFT_NORETURN __attribute__((noreturn))
|
|
145
|
+
# else
|
|
146
|
+
# define SWIFT_NORETURN
|
|
147
|
+
# endif
|
|
148
|
+
#endif
|
|
149
|
+
#if !defined(SWIFT_CLASS_EXTRA)
|
|
150
|
+
# define SWIFT_CLASS_EXTRA
|
|
151
|
+
#endif
|
|
152
|
+
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
|
153
|
+
# define SWIFT_PROTOCOL_EXTRA
|
|
154
|
+
#endif
|
|
155
|
+
#if !defined(SWIFT_ENUM_EXTRA)
|
|
156
|
+
# define SWIFT_ENUM_EXTRA
|
|
157
|
+
#endif
|
|
158
|
+
#if !defined(SWIFT_CLASS)
|
|
159
|
+
# if __has_attribute(objc_subclassing_restricted)
|
|
160
|
+
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
|
161
|
+
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
162
|
+
# else
|
|
163
|
+
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
164
|
+
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
165
|
+
# endif
|
|
166
|
+
#endif
|
|
167
|
+
#if !defined(SWIFT_RESILIENT_CLASS)
|
|
168
|
+
# if __has_attribute(objc_class_stub)
|
|
169
|
+
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
|
170
|
+
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
171
|
+
# else
|
|
172
|
+
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
|
173
|
+
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
174
|
+
# endif
|
|
175
|
+
#endif
|
|
176
|
+
#if !defined(SWIFT_PROTOCOL)
|
|
177
|
+
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
178
|
+
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
179
|
+
#endif
|
|
180
|
+
#if !defined(SWIFT_EXTENSION)
|
|
181
|
+
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
|
182
|
+
#endif
|
|
183
|
+
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
|
184
|
+
# if __has_attribute(objc_designated_initializer)
|
|
185
|
+
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
|
186
|
+
# else
|
|
187
|
+
# define OBJC_DESIGNATED_INITIALIZER
|
|
188
|
+
# endif
|
|
189
|
+
#endif
|
|
190
|
+
#if !defined(SWIFT_ENUM_ATTR)
|
|
191
|
+
# if __has_attribute(enum_extensibility)
|
|
192
|
+
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
|
193
|
+
# else
|
|
194
|
+
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
195
|
+
# endif
|
|
196
|
+
#endif
|
|
197
|
+
#if !defined(SWIFT_ENUM)
|
|
198
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
199
|
+
# if __has_feature(generalized_swift_name)
|
|
200
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
201
|
+
# else
|
|
202
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
203
|
+
# endif
|
|
204
|
+
#endif
|
|
205
|
+
#if !defined(SWIFT_UNAVAILABLE)
|
|
206
|
+
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
|
207
|
+
#endif
|
|
208
|
+
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
|
209
|
+
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
|
210
|
+
#endif
|
|
211
|
+
#if !defined(SWIFT_AVAILABILITY)
|
|
212
|
+
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
|
213
|
+
#endif
|
|
214
|
+
#if !defined(SWIFT_WEAK_IMPORT)
|
|
215
|
+
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
|
216
|
+
#endif
|
|
217
|
+
#if !defined(SWIFT_DEPRECATED)
|
|
218
|
+
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
|
219
|
+
#endif
|
|
220
|
+
#if !defined(SWIFT_DEPRECATED_MSG)
|
|
221
|
+
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
|
222
|
+
#endif
|
|
223
|
+
#if !defined(SWIFT_DEPRECATED_OBJC)
|
|
224
|
+
# if __has_feature(attribute_diagnose_if_objc)
|
|
225
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
|
226
|
+
# else
|
|
227
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
|
228
|
+
# endif
|
|
229
|
+
#endif
|
|
230
|
+
#if defined(__OBJC__)
|
|
231
|
+
#if !defined(IBSegueAction)
|
|
232
|
+
# define IBSegueAction
|
|
233
|
+
#endif
|
|
234
|
+
#endif
|
|
235
|
+
#if !defined(SWIFT_EXTERN)
|
|
236
|
+
# if defined(__cplusplus)
|
|
237
|
+
# define SWIFT_EXTERN extern "C"
|
|
238
|
+
# else
|
|
239
|
+
# define SWIFT_EXTERN extern
|
|
240
|
+
# endif
|
|
241
|
+
#endif
|
|
242
|
+
#if !defined(SWIFT_CALL)
|
|
243
|
+
# define SWIFT_CALL __attribute__((swiftcall))
|
|
244
|
+
#endif
|
|
245
|
+
#if !defined(SWIFT_INDIRECT_RESULT)
|
|
246
|
+
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
|
|
247
|
+
#endif
|
|
248
|
+
#if !defined(SWIFT_CONTEXT)
|
|
249
|
+
# define SWIFT_CONTEXT __attribute__((swift_context))
|
|
250
|
+
#endif
|
|
251
|
+
#if !defined(SWIFT_ERROR_RESULT)
|
|
252
|
+
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
|
|
253
|
+
#endif
|
|
254
|
+
#if defined(__cplusplus)
|
|
255
|
+
# define SWIFT_NOEXCEPT noexcept
|
|
256
|
+
#else
|
|
257
|
+
# define SWIFT_NOEXCEPT
|
|
258
|
+
#endif
|
|
259
|
+
#if !defined(SWIFT_C_INLINE_THUNK)
|
|
260
|
+
# if __has_attribute(always_inline)
|
|
261
|
+
# if __has_attribute(nodebug)
|
|
262
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
|
|
263
|
+
# else
|
|
264
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
|
|
265
|
+
# endif
|
|
266
|
+
# else
|
|
267
|
+
# define SWIFT_C_INLINE_THUNK inline
|
|
268
|
+
# endif
|
|
269
|
+
#endif
|
|
270
|
+
#if defined(_WIN32)
|
|
271
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
272
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
|
273
|
+
#endif
|
|
274
|
+
#else
|
|
275
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
276
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
|
277
|
+
#endif
|
|
278
|
+
#endif
|
|
279
|
+
#if defined(__OBJC__)
|
|
280
|
+
#if __has_feature(objc_modules)
|
|
281
|
+
#if __has_warning("-Watimport-in-framework-header")
|
|
282
|
+
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
283
|
+
#endif
|
|
284
|
+
@import Foundation;
|
|
285
|
+
@import ObjectiveC;
|
|
286
|
+
#endif
|
|
287
|
+
|
|
288
|
+
#import <RadarSDK/RadarSDK.h>
|
|
289
|
+
|
|
290
|
+
#endif
|
|
291
|
+
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
292
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
293
|
+
#if __has_warning("-Wpragma-clang-attribute")
|
|
294
|
+
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
|
295
|
+
#endif
|
|
296
|
+
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
297
|
+
#pragma clang diagnostic ignored "-Wnullability"
|
|
298
|
+
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
299
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
300
|
+
|
|
301
|
+
#if __has_attribute(external_source_symbol)
|
|
302
|
+
# pragma push_macro("any")
|
|
303
|
+
# undef any
|
|
304
|
+
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RadarSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
|
305
|
+
# pragma pop_macro("any")
|
|
306
|
+
#endif
|
|
307
|
+
|
|
308
|
+
#if defined(__OBJC__)
|
|
309
|
+
|
|
310
|
+
@class NSString;
|
|
311
|
+
@class UIImage;
|
|
312
|
+
@class RadarInAppMessage;
|
|
313
|
+
@class UIViewController;
|
|
314
|
+
SWIFT_CLASS_NAMED("RadarInAppMessageDelegate") SWIFT_AVAILABILITY(ios,introduced=13.0)
|
|
315
|
+
@interface RadarInAppMessageDelegate_Swift : NSObject <RadarInAppMessageProtocol>
|
|
316
|
+
+ (void)loadImage:(NSString * _Nonnull)url completionHandler:(void (^ _Nonnull)(UIImage * _Nullable))completionHandler SWIFT_AVAILABILITY(ios,introduced=13.0);
|
|
317
|
+
/// Returns the view controller for the message to show, can be overwritten to display a custom view
|
|
318
|
+
- (void)createInAppMessageView:(RadarInAppMessage * _Nonnull)message onDismiss:(void (^ _Nonnull)(void))onDismiss onInAppMessageClicked:(void (^ _Nonnull)(void))onInAppMessageClicked completionHandler:(void (^ _Nonnull)(UIViewController * _Nonnull))completionHandler;
|
|
319
|
+
- (void)onInAppMessageButtonClicked:(RadarInAppMessage * _Nonnull)message;
|
|
320
|
+
- (void)onInAppMessageDismissed:(RadarInAppMessage * _Nonnull)message;
|
|
321
|
+
- (void)onNewInAppMessage:(RadarInAppMessage * _Nonnull)message;
|
|
322
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
323
|
+
@end
|
|
324
|
+
|
|
325
|
+
SWIFT_CLASS("_TtC8RadarSDK24RadarInAppMessageManager") SWIFT_AVAILABILITY(ios,introduced=13.0)
|
|
326
|
+
@interface RadarInAppMessageManager : NSObject
|
|
327
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) RadarInAppMessageManager * _Nonnull shared;)
|
|
328
|
+
+ (RadarInAppMessageManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
329
|
+
- (void)showInAppMessage:(RadarInAppMessage * _Nonnull)message completionHandler:(void (^ _Nonnull)(void))completionHandler;
|
|
330
|
+
- (void)onInAppMessageReceivedWithMessages:(NSArray<RadarInAppMessage *> * _Nonnull)messages;
|
|
331
|
+
- (void)setDelegate:(id <RadarInAppMessageProtocol> _Nonnull)delegate;
|
|
332
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
333
|
+
@end
|
|
334
|
+
|
|
335
|
+
SWIFT_CLASS_NAMED("RadarInAppMessage_Swift")
|
|
336
|
+
@interface RadarInAppMessage_Swift : RadarInAppMessage
|
|
337
|
+
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nonnull metadata;
|
|
338
|
+
+ (RadarInAppMessage * _Nullable)fromDictionary:(NSDictionary<NSString *, id> * _Nonnull)dict SWIFT_WARN_UNUSED_RESULT;
|
|
339
|
+
+ (NSArray<RadarInAppMessage *> * _Nonnull)fromArray:(id _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
|
|
340
|
+
- (NSDictionary<NSString *, id> * _Nonnull)toDictionary SWIFT_WARN_UNUSED_RESULT;
|
|
341
|
+
+ (NSDictionary<NSString *, id> * _Nonnull)toDictionary:(RadarInAppMessage * _Nonnull)message SWIFT_WARN_UNUSED_RESULT;
|
|
342
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
343
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
344
|
+
@end
|
|
345
|
+
|
|
346
|
+
@protocol RadarDelegate;
|
|
347
|
+
SWIFT_CLASS_NAMED("RadarLogger")
|
|
348
|
+
@interface RadarLogger_Swift : NSObject
|
|
349
|
+
+ (void)setDelegate:(id <RadarDelegate> _Nonnull)delegate;
|
|
350
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
351
|
+
@end
|
|
352
|
+
|
|
353
|
+
#endif
|
|
354
|
+
#if __has_attribute(external_source_symbol)
|
|
355
|
+
# pragma clang attribute pop
|
|
356
|
+
#endif
|
|
357
|
+
#if defined(__cplusplus)
|
|
358
|
+
#endif
|
|
359
|
+
#pragma clang diagnostic pop
|
|
360
|
+
#endif
|
|
361
|
+
|
|
362
|
+
#else
|
|
363
|
+
#error unsupported Swift architecture
|
|
364
|
+
#endif
|
|
@@ -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
|