@transistorsoft/capacitor-background-geolocation 7.0.4 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/TransistorsoftCapacitorBackgroundGeolocation.podspec +4 -4
- package/android/libs/com/transistorsoft/tslocationmanager/3.6.8/tslocationmanager-3.6.8.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.6.8/tslocationmanager-3.6.8.aar.md5 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.6.8/tslocationmanager-3.6.8.aar.sha1 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.6.8/tslocationmanager-3.6.8.aar.sha256 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.6.8/tslocationmanager-3.6.8.aar.sha512 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.8/tslocationmanager-v21-3.6.8.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.8/tslocationmanager-v21-3.6.8.aar.md5 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.8/tslocationmanager-v21-3.6.8.aar.sha1 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.8/tslocationmanager-v21-3.6.8.aar.sha256 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.6.8/tslocationmanager-v21-3.6.8.aar.sha512 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml +1 -1
- package/package.json +4 -3
- package/ios/Resources/PrivacyInfo.xcprivacy +0 -35
- package/ios/TSLocationManager.xcframework/Info.plist +0 -61
- package/ios/TSLocationManager.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TSLocationManager.xcframework/_CodeSignature/CodeRequirements +0 -0
- package/ios/TSLocationManager.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TSLocationManager.xcframework/_CodeSignature/CodeResources +0 -2033
- package/ios/TSLocationManager.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/LocationManager.h +0 -55
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/LogQuery.h +0 -13
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSCallback.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSConfig.h +0 -310
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSLocation.h +0 -105
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSReachability.h +0 -106
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Info.plist +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Miniball/Miniball.hpp +0 -525
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Modules/module.modulemap +0 -6
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/PrivacyInfo.xcprivacy +0 -36
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeResources +0 -642
- package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/LocationManager.h +0 -55
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/LogQuery.h +0 -13
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSCallback.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSConfig.h +0 -310
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocation.h +0 -105
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSReachability.h +0 -106
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Modules/module.modulemap +0 -6
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Info.plist +0 -50
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Miniball/Miniball.hpp +0 -525
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/PrivacyInfo.xcprivacy +0 -36
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeResources +0 -536
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/LocationManager.h +0 -55
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/LogQuery.h +0 -13
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSCallback.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSConfig.h +0 -310
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSLocation.h +0 -105
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSReachability.h +0 -106
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Info.plist +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Miniball/Miniball.hpp +0 -525
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Modules/module.modulemap +0 -6
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/PrivacyInfo.xcprivacy +0 -36
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeResources +0 -642
- package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSConfig.h
DELETED
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSConfig.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2018-02-05.
|
|
6
|
-
// Copyright © 2018 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
#import <CoreLocation/CoreLocation.h>
|
|
9
|
-
#import <objc/runtime.h>
|
|
10
|
-
#import "TSAuthorization.h"
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Create TSSettingType
|
|
14
|
-
*/
|
|
15
|
-
typedef enum TSSettingType : NSInteger {
|
|
16
|
-
tsSettingTypeString = 0,
|
|
17
|
-
tsSettingTypeInteger,
|
|
18
|
-
tsSettingTypeUInteger,
|
|
19
|
-
tsSettingTypeBoolean,
|
|
20
|
-
tsSettingTypeDouble,
|
|
21
|
-
tsSettingTypeFloat,
|
|
22
|
-
tsSettingTypeLong,
|
|
23
|
-
tsSettingTypeDictionary,
|
|
24
|
-
tsSettingTypeArray,
|
|
25
|
-
tsSettingTypeModule
|
|
26
|
-
} TSSettingType;
|
|
27
|
-
|
|
28
|
-
typedef enum TSTrackingMode : NSInteger {
|
|
29
|
-
tsTrackingModeGeofence = 0,
|
|
30
|
-
tsTrackingModeLocation
|
|
31
|
-
} TSTrackingMode;
|
|
32
|
-
|
|
33
|
-
typedef enum TSLogLevel : NSInteger {
|
|
34
|
-
tsLogLevelOff = 0,
|
|
35
|
-
tsLogLevelError,
|
|
36
|
-
tsLogLevelWarning,
|
|
37
|
-
tsLogLevelInfo,
|
|
38
|
-
tsLogLevelDebug,
|
|
39
|
-
tsLogLevelVerbose
|
|
40
|
-
} TSLogLevel;
|
|
41
|
-
|
|
42
|
-
typedef enum TSPersistMode : NSInteger {
|
|
43
|
-
tsPersistModeNone = 0,
|
|
44
|
-
tsPersistModeAll = 2,
|
|
45
|
-
tsPersistModeLocation = 1,
|
|
46
|
-
tsPersistModeGeofence = -1
|
|
47
|
-
} TSPersistMode;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* TSConfigBuilder
|
|
51
|
-
*/
|
|
52
|
-
@interface TSConfigBuilder : NSObject
|
|
53
|
-
|
|
54
|
-
/// @name Properties
|
|
55
|
-
|
|
56
|
-
// Geolocation
|
|
57
|
-
/**
|
|
58
|
-
* desired accuracy in meterssss
|
|
59
|
-
*/
|
|
60
|
-
@property (nonatomic) CLLocationAccuracy desiredAccuracy;
|
|
61
|
-
/**
|
|
62
|
-
* distance filter in meters
|
|
63
|
-
*/
|
|
64
|
-
@property (nonatomic) CLLocationDistance distanceFilter;
|
|
65
|
-
@property (nonatomic) CLLocationDistance stationaryRadius;
|
|
66
|
-
@property (nonatomic) NSTimeInterval locationTimeout;
|
|
67
|
-
@property (nonatomic) BOOL useSignificantChangesOnly;
|
|
68
|
-
@property (nonatomic) BOOL pausesLocationUpdatesAutomatically;
|
|
69
|
-
@property (nonatomic) BOOL disableElasticity;
|
|
70
|
-
@property (nonatomic) double elasticityMultiplier;
|
|
71
|
-
@property (nonatomic) NSTimeInterval stopAfterElapsedMinutes;
|
|
72
|
-
@property (nonatomic) NSString* locationAuthorizationRequest;
|
|
73
|
-
@property (nonatomic) NSDictionary* locationAuthorizationAlert;
|
|
74
|
-
@property (nonatomic) BOOL disableLocationAuthorizationAlert;
|
|
75
|
-
@property (nonatomic) CLLocationDistance geofenceProximityRadius;
|
|
76
|
-
@property (nonatomic) BOOL geofenceInitialTriggerEntry;
|
|
77
|
-
@property (nonatomic) CLLocationAccuracy desiredOdometerAccuracy;
|
|
78
|
-
@property (nonatomic) BOOL enableTimestampMeta;
|
|
79
|
-
@property (nonatomic) BOOL showsBackgroundLocationIndicator;
|
|
80
|
-
|
|
81
|
-
/// ActivityRecognition
|
|
82
|
-
@property (nonatomic) BOOL isMoving;
|
|
83
|
-
@property (nonatomic) CLActivityType activityType;
|
|
84
|
-
@property (nonatomic) NSTimeInterval stopDetectionDelay;
|
|
85
|
-
@property (nonatomic) NSTimeInterval stopTimeout;
|
|
86
|
-
@property (nonatomic) NSTimeInterval activityRecognitionInterval;
|
|
87
|
-
@property (nonatomic) NSInteger minimumActivityRecognitionConfidence;
|
|
88
|
-
@property (nonatomic) BOOL disableMotionActivityUpdates;
|
|
89
|
-
@property (nonatomic) BOOL disableStopDetection;
|
|
90
|
-
@property (nonatomic) BOOL stopOnStationary;
|
|
91
|
-
|
|
92
|
-
/// HTTP & Persistence
|
|
93
|
-
@property (nonatomic) NSString* url;
|
|
94
|
-
@property (nonatomic) NSString* method;
|
|
95
|
-
@property (nonatomic) NSString* httpRootProperty;
|
|
96
|
-
@property (nonatomic) NSDictionary* params;
|
|
97
|
-
@property (nonatomic) NSDictionary* headers;
|
|
98
|
-
@property (nonatomic) NSDictionary* extras;
|
|
99
|
-
@property (nonatomic) BOOL autoSync;
|
|
100
|
-
@property (nonatomic) NSInteger autoSyncThreshold;
|
|
101
|
-
@property (nonatomic) BOOL batchSync;
|
|
102
|
-
@property (nonatomic) NSInteger maxBatchSize;
|
|
103
|
-
@property (nonatomic) NSString *locationTemplate;
|
|
104
|
-
@property (nonatomic) NSString *geofenceTemplate;
|
|
105
|
-
@property (nonatomic) NSInteger maxDaysToPersist;
|
|
106
|
-
@property (nonatomic) NSInteger maxRecordsToPersist;
|
|
107
|
-
@property (nonatomic) NSString* locationsOrderDirection;
|
|
108
|
-
@property (nonatomic) NSInteger httpTimeout;
|
|
109
|
-
@property (nonatomic) TSPersistMode persistMode;
|
|
110
|
-
@property (nonatomic) BOOL disableAutoSyncOnCellular;
|
|
111
|
-
@property (nonatomic) TSAuthorization* authorization;
|
|
112
|
-
|
|
113
|
-
/// Application
|
|
114
|
-
@property (nonatomic) BOOL stopOnTerminate;
|
|
115
|
-
@property (nonatomic) BOOL startOnBoot;
|
|
116
|
-
@property (nonatomic) BOOL preventSuspend;
|
|
117
|
-
@property (nonatomic) NSTimeInterval heartbeatInterval;
|
|
118
|
-
@property (nonatomic) NSArray *schedule;
|
|
119
|
-
@property (nonatomic) NSString *triggerActivities;
|
|
120
|
-
/// Logging & Debug
|
|
121
|
-
@property (nonatomic) BOOL debug;
|
|
122
|
-
@property (nonatomic) TSLogLevel logLevel;
|
|
123
|
-
@property (nonatomic) NSInteger logMaxDays;
|
|
124
|
-
|
|
125
|
-
/// :nodoc:
|
|
126
|
-
+ (void)eachProperty:(Class)mClass callback:(void(^)(NSString*, TSSettingType))block;
|
|
127
|
-
/// :nodoc:
|
|
128
|
-
+ (TSSettingType) getPropertyType:(objc_property_t)property;
|
|
129
|
-
/// :nodoc:
|
|
130
|
-
+ (CLLocationAccuracy) decodeDesiredAccuracy:(NSNumber*)accuracy;
|
|
131
|
-
|
|
132
|
-
- (NSDictionary*) toDictionary;
|
|
133
|
-
|
|
134
|
-
@end
|
|
135
|
-
|
|
136
|
-
# pragma mark TSConfig
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
The SDK's Configuration API.
|
|
140
|
-
*/
|
|
141
|
-
@interface TSConfig : NSObject <NSCoding>
|
|
142
|
-
|
|
143
|
-
#pragma mark - Singleton
|
|
144
|
-
|
|
145
|
-
/// Returns the singleton instance.
|
|
146
|
-
+ (TSConfig *)sharedInstance;
|
|
147
|
-
/// :nodoc:
|
|
148
|
-
+ (Class) classForPropertyName:(NSString*)name fromObject:(id)object;
|
|
149
|
-
|
|
150
|
-
+ (NSUserDefaults*) userDefaults;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
`YES` when the SDK is in the *location + geofence* tracking mode, where `-[TSLocationManager start]` was called.
|
|
154
|
-
`NO` when the SDK is in *geofences-only* tracking mode, where `-[TSLocationMangager startGeofences]` was called.
|
|
155
|
-
*/
|
|
156
|
-
-(BOOL)isLocationTrackingMode;
|
|
157
|
-
/**
|
|
158
|
-
`YES` when this is the first launch after initial installation of you application.
|
|
159
|
-
*/
|
|
160
|
-
-(BOOL)isFirstBoot;
|
|
161
|
-
/**
|
|
162
|
-
`YES` when the application was launched in the background.
|
|
163
|
-
*/
|
|
164
|
-
-(BOOL)didLaunchInBackground;
|
|
165
|
-
|
|
166
|
-
# pragma mark Initializers
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
Update the SDK with new configuration options.
|
|
170
|
-
*/
|
|
171
|
-
- (void)updateWithBlock:(void(^)(TSConfigBuilder*))block;
|
|
172
|
-
/// :nodoc:
|
|
173
|
-
- (void)updateWithDictionary:(NSDictionary*)config;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
Resets the SDK's configuration to default values.
|
|
177
|
-
*/
|
|
178
|
-
- (void)reset;
|
|
179
|
-
/// :nodoc:
|
|
180
|
-
- (void)reset:(BOOL)silent;
|
|
181
|
-
|
|
182
|
-
# pragma mark Geolocation methods
|
|
183
|
-
/// :nodoc:
|
|
184
|
-
- (BOOL) getPausesLocationUpdates;
|
|
185
|
-
|
|
186
|
-
# pragma mark Events
|
|
187
|
-
/// :nodoc:
|
|
188
|
-
- (void)onChange:(NSString*)property callback:(void(^)(id))block;
|
|
189
|
-
/// :nodoc:
|
|
190
|
-
- (void) removeListeners;
|
|
191
|
-
|
|
192
|
-
# pragma mark State methods
|
|
193
|
-
/// :nodoc:
|
|
194
|
-
-(void)incrementOdometer:(CLLocationDistance)distance;
|
|
195
|
-
/// :nodoc:
|
|
196
|
-
-(BOOL)hasValidUrl;
|
|
197
|
-
/// :nodoc:
|
|
198
|
-
-(BOOL)hasSchedule;
|
|
199
|
-
/// :nodoc:
|
|
200
|
-
-(NSDictionary*)getLocationAuthorizationAlertStrings;
|
|
201
|
-
|
|
202
|
-
- (BOOL)didDeviceReboot;
|
|
203
|
-
|
|
204
|
-
# pragma mark Utility methods
|
|
205
|
-
/**
|
|
206
|
-
Returns an `NSDictionary` representation of the configuration options.
|
|
207
|
-
*/
|
|
208
|
-
- (NSDictionary*) toDictionary;
|
|
209
|
-
/// :nodoc:
|
|
210
|
-
- (NSDictionary*) toDictionary:(BOOL)redact;
|
|
211
|
-
/// :nodoc:
|
|
212
|
-
- (NSString*) toJson;
|
|
213
|
-
/// :nodoc:
|
|
214
|
-
- (void) registerPlugin:(NSString*)pluginName;
|
|
215
|
-
/// :nodoc:
|
|
216
|
-
- (BOOL) hasPluginForEvent:(NSString*)eventName;
|
|
217
|
-
|
|
218
|
-
-(BOOL) hasTriggerActivities;
|
|
219
|
-
|
|
220
|
-
/// @name State Properties
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
enabled is tracking enabled?
|
|
224
|
-
*/
|
|
225
|
-
@property (nonatomic) BOOL enabled;
|
|
226
|
-
/**
|
|
227
|
-
State of plugin, moving or stationary.
|
|
228
|
-
*/
|
|
229
|
-
@property (nonatomic) BOOL isMoving;
|
|
230
|
-
/**
|
|
231
|
-
True when scheduler is enabled
|
|
232
|
-
*/
|
|
233
|
-
@property (nonatomic) BOOL schedulerEnabled;
|
|
234
|
-
|
|
235
|
-
@property (nonatomic) CLLocationDistance odometer;
|
|
236
|
-
@property (nonatomic) TSTrackingMode trackingMode;
|
|
237
|
-
@property (nonatomic) CLAuthorizationStatus lastLocationAuthorizationStatus;
|
|
238
|
-
@property (nonatomic) BOOL iOSHasWarnedLocationServicesOff;
|
|
239
|
-
@property (nonatomic) BOOL didRequestUpgradeLocationAuthorization;
|
|
240
|
-
@property (nonatomic) BOOL didLaunchInBackground;
|
|
241
|
-
|
|
242
|
-
/// @name Geolocation Properties
|
|
243
|
-
/**
|
|
244
|
-
* GPS is only used when kCLDesiredAccuracyBest or kCLDesiredAccuracyBestForNavigation.
|
|
245
|
-
*/
|
|
246
|
-
@property (nonatomic, readonly) CLLocationAccuracy desiredAccuracy;
|
|
247
|
-
/**
|
|
248
|
-
* A location will be recorded each distanceFilter meters
|
|
249
|
-
*/
|
|
250
|
-
@property (nonatomic, readonly) CLLocationDistance distanceFilter;
|
|
251
|
-
@property (nonatomic, readonly) CLLocationDistance stationaryRadius;
|
|
252
|
-
@property (nonatomic, readonly) NSTimeInterval locationTimeout;
|
|
253
|
-
@property (nonatomic, readonly) BOOL useSignificantChangesOnly;
|
|
254
|
-
@property (nonatomic, readonly) BOOL pausesLocationUpdatesAutomatically;
|
|
255
|
-
@property (nonatomic, readonly) BOOL disableElasticity;
|
|
256
|
-
@property (nonatomic, readonly) double elasticityMultiplier;
|
|
257
|
-
@property (nonatomic, readonly) NSTimeInterval stopAfterElapsedMinutes;
|
|
258
|
-
@property (nonatomic, readonly) NSString* locationAuthorizationRequest;
|
|
259
|
-
@property (nonatomic, readonly) BOOL disableLocationAuthorizationAlert;
|
|
260
|
-
@property (nonatomic, readonly) NSDictionary* locationAuthorizationAlert;
|
|
261
|
-
@property (nonatomic, readonly) CLLocationDistance geofenceProximityRadius;
|
|
262
|
-
@property (nonatomic, readonly) BOOL geofenceInitialTriggerEntry;
|
|
263
|
-
@property (nonatomic, readonly) CLLocationAccuracy desiredOdometerAccuracy;
|
|
264
|
-
@property (nonatomic) BOOL enableTimestampMeta;
|
|
265
|
-
@property (nonatomic) BOOL showsBackgroundLocationIndicator;
|
|
266
|
-
|
|
267
|
-
/// @name ActivityRecognition Properties
|
|
268
|
-
@property (nonatomic, readonly) CLActivityType activityType;
|
|
269
|
-
@property (nonatomic, readonly) NSTimeInterval stopDetectionDelay;
|
|
270
|
-
@property (nonatomic, readonly) NSTimeInterval stopTimeout;
|
|
271
|
-
@property (nonatomic, readonly) NSTimeInterval activityRecognitionInterval;
|
|
272
|
-
@property (nonatomic, readonly) NSInteger minimumActivityRecognitionConfidence;
|
|
273
|
-
@property (nonatomic, readonly) BOOL disableMotionActivityUpdates;
|
|
274
|
-
@property (nonatomic, readonly) BOOL disableStopDetection;
|
|
275
|
-
@property (nonatomic, readonly) BOOL stopOnStationary;
|
|
276
|
-
|
|
277
|
-
/// @name HTTP & Persistence Properties
|
|
278
|
-
@property (nonatomic, readonly) NSString* url;
|
|
279
|
-
@property (nonatomic, readonly) NSString* method;
|
|
280
|
-
@property (nonatomic, readonly) NSString* httpRootProperty;
|
|
281
|
-
@property (nonatomic, readonly) NSDictionary* params;
|
|
282
|
-
@property (nonatomic, readonly) NSDictionary* headers;
|
|
283
|
-
@property (nonatomic, readonly) NSDictionary* extras;
|
|
284
|
-
@property (nonatomic, readonly) BOOL autoSync;
|
|
285
|
-
@property (nonatomic, readonly) NSInteger autoSyncThreshold;
|
|
286
|
-
@property (nonatomic, readonly) BOOL batchSync;
|
|
287
|
-
@property (nonatomic, readonly) NSInteger maxBatchSize;
|
|
288
|
-
@property (nonatomic, readonly) NSString *locationTemplate;
|
|
289
|
-
@property (nonatomic, readonly) NSString *geofenceTemplate;
|
|
290
|
-
@property (nonatomic, readonly) NSInteger maxDaysToPersist;
|
|
291
|
-
@property (nonatomic, readonly) NSInteger maxRecordsToPersist;
|
|
292
|
-
@property (nonatomic, readonly) NSString* locationsOrderDirection;
|
|
293
|
-
@property (nonatomic, readonly) NSInteger httpTimeout;
|
|
294
|
-
@property (nonatomic) TSPersistMode persistMode;
|
|
295
|
-
@property (nonatomic) BOOL disableAutoSyncOnCellular;
|
|
296
|
-
@property (nonatomic) TSAuthorization* authorization;
|
|
297
|
-
|
|
298
|
-
/// @name Application Properties
|
|
299
|
-
@property (nonatomic, readonly) BOOL stopOnTerminate;
|
|
300
|
-
@property (nonatomic, readonly) BOOL startOnBoot;
|
|
301
|
-
@property (nonatomic, readonly) BOOL preventSuspend;
|
|
302
|
-
@property (nonatomic, readonly) NSTimeInterval heartbeatInterval;
|
|
303
|
-
@property (nonatomic, readonly) NSArray *schedule;
|
|
304
|
-
@property (nonatomic, readonly) NSString *triggerActivities;
|
|
305
|
-
/// @name Logging & Debug Properties
|
|
306
|
-
@property (nonatomic, readonly) BOOL debug;
|
|
307
|
-
@property (nonatomic, readonly) TSLogLevel logLevel;
|
|
308
|
-
@property (nonatomic, readonly) NSInteger logMaxDays;
|
|
309
|
-
|
|
310
|
-
@end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSConnectivityChangeEvent.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2018-02-22.
|
|
6
|
-
// Copyright © 2018 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
@interface TSConnectivityChangeEvent : NSObject
|
|
10
|
-
|
|
11
|
-
@property (nonatomic, readonly) BOOL hasConnection;
|
|
12
|
-
|
|
13
|
-
-(instancetype) initWithHasConnection:(BOOL)hasConnection;
|
|
14
|
-
-(NSDictionary*) toDictionary;
|
|
15
|
-
@end
|
|
16
|
-
|
|
17
|
-
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSCurrentPositionRequest.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2018-02-11.
|
|
6
|
-
// Copyright © 2018 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
#import "TSLocation.h"
|
|
9
|
-
|
|
10
|
-
@interface TSCurrentPositionRequest : NSObject
|
|
11
|
-
|
|
12
|
-
@property (atomic) NSTimeInterval timeout;
|
|
13
|
-
@property (atomic) double maximumAge;
|
|
14
|
-
@property (atomic) BOOL persist;
|
|
15
|
-
@property (atomic) int samples;
|
|
16
|
-
@property (atomic) CLLocationAccuracy desiredAccuracy;
|
|
17
|
-
@property (atomic) NSDictionary* extras;
|
|
18
|
-
@property (atomic, copy) void (^success)(TSLocation*);
|
|
19
|
-
@property (atomic, copy) void (^failure)(NSError*);
|
|
20
|
-
|
|
21
|
-
-(instancetype) init;
|
|
22
|
-
-(instancetype) initWithSuccess:(void (^)(TSLocation*))success failure:(void (^)(NSError*))failure;
|
|
23
|
-
|
|
24
|
-
-(instancetype) initWithPersist:(BOOL)persist
|
|
25
|
-
success:(void (^)(TSLocation*))success
|
|
26
|
-
failure:(void (^)(NSError*))failure;
|
|
27
|
-
|
|
28
|
-
-(instancetype) initWithPersist:(BOOL)persist
|
|
29
|
-
samples:(int)samples
|
|
30
|
-
success:(void (^)(TSLocation*))success
|
|
31
|
-
failure:(void (^)(NSError*))failure;
|
|
32
|
-
|
|
33
|
-
-(instancetype) initWithTimeout:(int)timeout
|
|
34
|
-
maximumAge:(double)maximumAge
|
|
35
|
-
persist:(BOOL)persist
|
|
36
|
-
samples:(int)samples
|
|
37
|
-
desiredAccuracy:(CLLocationAccuracy)desiredAccuracy
|
|
38
|
-
extras:(NSDictionary*)extras
|
|
39
|
-
success:(void (^)(TSLocation*))success
|
|
40
|
-
failure:(void (^)(NSError*))failure;
|
|
41
|
-
|
|
42
|
-
@end
|
|
43
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// DeviceInfo.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2019-11-21.
|
|
6
|
-
// Copyright © 2019 Christopher Scott. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
#import <objc/runtime.h>
|
|
9
|
-
#import <sys/utsname.h>
|
|
10
|
-
|
|
11
|
-
@interface TSDeviceInfo:NSObject
|
|
12
|
-
|
|
13
|
-
+ (TSDeviceInfo *)sharedInstance;
|
|
14
|
-
|
|
15
|
-
@property(nonatomic) NSString* model;
|
|
16
|
-
@property(nonatomic) NSString* manufacturer;
|
|
17
|
-
@property(nonatomic) NSString* platform;
|
|
18
|
-
@property(nonatomic) NSString* version;
|
|
19
|
-
|
|
20
|
-
-(NSDictionary*) toDictionary;
|
|
21
|
-
-(NSDictionary*) toDictionary:(NSString*)framework;
|
|
22
|
-
|
|
23
|
-
@end
|
|
24
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSEnabledChangeEvent.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2018-02-22.
|
|
6
|
-
// Copyright © 2018 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
@interface TSEnabledChangeEvent : NSObject
|
|
10
|
-
|
|
11
|
-
@property (nonatomic, readonly) BOOL enabled;
|
|
12
|
-
-(instancetype) initWithEnabled:(BOOL)enabled;
|
|
13
|
-
|
|
14
|
-
@end
|
|
15
|
-
|
package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofence.h
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSGeofence.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2016-12-21.
|
|
6
|
-
// Copyright © 2016 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
@interface TSGeofence : NSObject
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
@property (nonatomic) NSString* identifier;
|
|
15
|
-
@property (nonatomic) CLLocationDistance radius;
|
|
16
|
-
|
|
17
|
-
@property (nonatomic) CLLocationDegrees latitude;
|
|
18
|
-
@property (nonatomic) CLLocationDegrees longitude;
|
|
19
|
-
@property (nonatomic) BOOL notifyOnEntry;
|
|
20
|
-
@property (nonatomic) BOOL notifyOnExit;
|
|
21
|
-
@property (nonatomic) BOOL notifyOnDwell;
|
|
22
|
-
@property (nonatomic) double loiteringDelay;
|
|
23
|
-
@property (nonatomic) NSDictionary* extras;
|
|
24
|
-
@property (nonatomic) NSArray* vertices;
|
|
25
|
-
/**
|
|
26
|
-
* Arbitrary extra data attached to the geofence
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
-(instancetype) initWithIdentifier:(NSString*)identifier
|
|
30
|
-
radius:(CLLocationDistance)radius
|
|
31
|
-
latitude:(CLLocationDegrees)latitude
|
|
32
|
-
longitude:(CLLocationDegrees)lontitude
|
|
33
|
-
notifyOnEntry:(BOOL)notifyOnEntry
|
|
34
|
-
notifyOnExit:(BOOL)notifyOnExit
|
|
35
|
-
notifyOnDwell:(BOOL)notifyOnDwell
|
|
36
|
-
loiteringDelay:(double)loiteringDelay;
|
|
37
|
-
|
|
38
|
-
-(instancetype) initWithIdentifier:(NSString*)identifier
|
|
39
|
-
radius:(CLLocationDistance)radius
|
|
40
|
-
latitude:(CLLocationDegrees)latitude
|
|
41
|
-
longitude:(CLLocationDegrees)longitude
|
|
42
|
-
notifyOnEntry:(BOOL)notifyOnEntry
|
|
43
|
-
notifyOnExit:(BOOL)notifyOnExit
|
|
44
|
-
notifyOnDwell:(BOOL)notifyOnDwell
|
|
45
|
-
loiteringDelay:(double)loiteringDelay
|
|
46
|
-
extras:(NSDictionary*)extras
|
|
47
|
-
vertices:(NSArray*)vertices;
|
|
48
|
-
|
|
49
|
-
- (NSDictionary*) toDictionary;
|
|
50
|
-
- (BOOL) isPolygon;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
@end
|
|
54
|
-
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSGeofenceEvent.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2017-03-27.
|
|
6
|
-
// Copyright © 2017 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import "TSLocation.h"
|
|
11
|
-
#import "TSGeofence.h"
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
The event object provided to `-[TSLocationManager onGeofence:]`
|
|
15
|
-
|
|
16
|
-
```obj-c
|
|
17
|
-
TSLocationManager *bgGeo = [TSLocationManager sharedInstance];
|
|
18
|
-
[bgGeo onGeofence:^(TSGeofenceEvent *event) {
|
|
19
|
-
NSLog(@"[onGeofence]: %@", event);
|
|
20
|
-
}];
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
*/
|
|
24
|
-
@interface TSGeofenceEvent : NSObject
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/// The location associated with this geofence event.
|
|
30
|
-
@property (nonatomic, readonly) TSLocation* location;
|
|
31
|
-
/// The triggered geofence
|
|
32
|
-
@property (nonatomic, readonly) TSGeofence* geofence;
|
|
33
|
-
/// The region instance.
|
|
34
|
-
@property (nonatomic, readonly) CLCircularRegion* region;
|
|
35
|
-
|
|
36
|
-
@property (nonatomic) NSDate *timestamp;
|
|
37
|
-
|
|
38
|
-
/// The geofence transition (eg: "ENTER", "EXIT", "DWELL"
|
|
39
|
-
@property (nonatomic, readonly) NSString* action;
|
|
40
|
-
/// :nodoc:
|
|
41
|
-
@property (nonatomic, readonly) BOOL isLoitering;
|
|
42
|
-
|
|
43
|
-
/// :nodoc:
|
|
44
|
-
@property (nonatomic, readonly) BOOL isFinishedLoitering;
|
|
45
|
-
|
|
46
|
-
/// :nodoc:
|
|
47
|
-
-(instancetype)initWithGeofence:(TSGeofence*)geofence region:(CLCircularRegion*)circularRegion action:(NSString*)actionName;
|
|
48
|
-
-(instancetype)initWithGeofence:(TSGeofence*)geofence action:(NSString*)actionName;
|
|
49
|
-
|
|
50
|
-
/// :nodoc:
|
|
51
|
-
-(void) startLoiteringAt:(CLLocation*)location callback:(void (^)(void))callback;
|
|
52
|
-
/// :nodoc:
|
|
53
|
-
-(BOOL) isLoiteringAt:(CLLocation*)location;
|
|
54
|
-
/// :nodoc:
|
|
55
|
-
-(void) setTriggerLocation:(CLLocation*)location;
|
|
56
|
-
/// :nodoc:
|
|
57
|
-
-(void) cancel;
|
|
58
|
-
|
|
59
|
-
/// Returns an `NSDictionary` representaton.
|
|
60
|
-
-(NSDictionary*)toDictionary;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
@end
|
|
64
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// GeofenceManager.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2016-10-04.
|
|
6
|
-
// Copyright © 2016 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import <CoreLocation/CoreLocation.h>
|
|
11
|
-
#import "TSGeofenceEvent.h"
|
|
12
|
-
#import "TSGeofencesChangeEvent.h"
|
|
13
|
-
|
|
14
|
-
extern NSString *const STATIONARY_REGION_IDENTIFIER;
|
|
15
|
-
|
|
16
|
-
@interface TSGeofenceManager : NSObject<CLLocationManagerDelegate>
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@property (copy) void (^onGeofence) (TSGeofenceEvent* event);
|
|
22
|
-
|
|
23
|
-
@property (atomic) BOOL isMoving;
|
|
24
|
-
@property (atomic) BOOL enabled;
|
|
25
|
-
@property (atomic) BOOL evaluated;
|
|
26
|
-
@property (atomic) BOOL isUpdatingLocation;
|
|
27
|
-
@property (atomic) BOOL isEvaluatingEvents;
|
|
28
|
-
@property (atomic) BOOL isRequestingLocation;
|
|
29
|
-
@property (atomic) BOOL isMonitoringSignificantChanges;
|
|
30
|
-
@property (atomic) BOOL willEvaluateProximity;
|
|
31
|
-
@property (atomic) CLLocation *lastLocation;
|
|
32
|
-
|
|
33
|
-
@property (atomic, readonly) NSMutableArray *geofencesChangeListeners;
|
|
34
|
-
@property (atomic, readonly) NSMutableArray *geofenceListeners;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
// Event listeners
|
|
38
|
-
-(void) onGeofencesChange:(void (^)(TSGeofencesChangeEvent*))success;
|
|
39
|
-
-(void) onGeofence:(void (^)(TSGeofenceEvent*))success;
|
|
40
|
-
-(void) un:(NSString*)event callback:(void(^)(id))callback;
|
|
41
|
-
-(void) removeListeners;
|
|
42
|
-
-(void) start;
|
|
43
|
-
-(void) stop;
|
|
44
|
-
-(void) ready;
|
|
45
|
-
-(void) setLocation:(CLLocation*)location isMoving:(BOOL)isMoving;
|
|
46
|
-
-(void) setProximityRadius:(CLLocationDistance)radius;
|
|
47
|
-
-(BOOL) isMonitoringRegion:(CLCircularRegion*)region;
|
|
48
|
-
-(void) didBecomeStationary:(CLLocation*)locaiton;
|
|
49
|
-
-(NSString*) identifierFor:(CLCircularRegion*)region;
|
|
50
|
-
-(void) create:(NSArray*)geofences success:(void (^)(void))success failure:(void (^)(NSString*))failure;
|
|
51
|
-
-(void) destroy:(NSArray*)identifiers success:(void (^)(void))success failure:(void (^)(NSString*))failure;
|
|
52
|
-
-(BOOL) isInfiniteMonitoring;
|
|
53
|
-
|
|
54
|
-
@end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSGeofencesChangeEvent.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2017-07-29.
|
|
6
|
-
// Copyright © 2017 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
#import "TSSchedule.h"
|
|
9
|
-
|
|
10
|
-
@interface TSGeofencesChangeEvent : NSObject
|
|
11
|
-
|
|
12
|
-
@property (nonatomic, readonly) NSArray* on;
|
|
13
|
-
@property (nonatomic, readonly) NSArray* off;
|
|
14
|
-
|
|
15
|
-
-(id) initWithOn:(NSArray*)on off:(NSArray*)off;
|
|
16
|
-
-(NSDictionary*) toDictionary;
|
|
17
|
-
@end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSHeartbeat.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2017-07-28.
|
|
6
|
-
// Copyright © 2017 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "TSLocation.h"
|
|
10
|
-
|
|
11
|
-
@interface TSHeartbeatEvent : NSObject
|
|
12
|
-
|
|
13
|
-
@property (nonatomic, readonly) TSLocation* location;
|
|
14
|
-
|
|
15
|
-
-(id) initWithLocation:(CLLocation*)location;
|
|
16
|
-
-(NSDictionary*) toDictionary;
|
|
17
|
-
@end
|
|
18
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSHttpResponse.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2017-07-28.
|
|
6
|
-
// Copyright © 2017 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
@interface TSHttpEvent : NSObject
|
|
10
|
-
|
|
11
|
-
@property (nonatomic, readonly) BOOL isSuccess;
|
|
12
|
-
@property (nonatomic, readonly) NSInteger statusCode;
|
|
13
|
-
@property (nonatomic, readonly) NSDictionary *requestData;
|
|
14
|
-
@property (nonatomic, readonly) NSString *responseText;
|
|
15
|
-
@property (nonatomic, readonly) NSError *error;
|
|
16
|
-
|
|
17
|
-
-(id) initWithStatusCode:(NSInteger)statusCode requestData:(NSDictionary*)requestData responseData:(NSData*)responseData error:(NSError*)error;
|
|
18
|
-
-(NSDictionary*) toDictionary;
|
|
19
|
-
@end
|