react-native-background-geolocation 4.13.3 → 4.14.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/RNBackgroundGeolocation.podspec +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/{3.4.5/tslocationmanager-3.4.5.pom → 3.5.0/tslocationmanager-3.5.0.pom} +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.pom.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.pom.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.pom.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.pom.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +5 -8
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.aar.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.aar.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.aar.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.aar.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/{3.4.5/tslocationmanager-v21-3.4.5.pom → 3.5.0/tslocationmanager-v21-3.5.0.pom} +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.pom.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.pom.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.pom.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.pom.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml +5 -8
- package/android/src/main/java/com/transistorsoft/rnbackgroundgeolocation/RNBackgroundGeolocationModule.java +17 -1
- package/ios/RNBackgroundGeolocation/RNBackgroundGeolocation.m +5 -2
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/Info.plist +7 -7
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofence.h +6 -2
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofenceManager.h +10 -10
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSLocationManager.h +36 -36
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Info.plist +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Miniball/Miniball.hpp +525 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofence.h +6 -2
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceManager.h +10 -10
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocationManager.h +36 -36
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Info.plist +1 -1
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Miniball/Miniball.hpp +525 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofence.h +6 -2
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceManager.h +10 -10
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSLocationManager.h +36 -36
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Info.plist +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Miniball/Miniball.hpp +525 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeResources +25 -10
- package/package.json +1 -1
- package/src/declarations/interfaces/Config.d.ts +1 -1
- package/src/declarations/interfaces/Geofence.d.ts +78 -14
- package/src/declarations/types.d.ts +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.5/tslocationmanager-3.4.5.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.5/tslocationmanager-3.4.5.aar.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.5/tslocationmanager-3.4.5.aar.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.5/tslocationmanager-3.4.5.aar.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.5/tslocationmanager-3.4.5.aar.sha512 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.5/tslocationmanager-3.4.5.pom.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.5/tslocationmanager-3.4.5.pom.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.5/tslocationmanager-3.4.5.pom.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.4.5/tslocationmanager-3.4.5.pom.sha512 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.5/tslocationmanager-v21-3.4.5.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.5/tslocationmanager-v21-3.4.5.aar.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.5/tslocationmanager-v21-3.4.5.aar.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.5/tslocationmanager-v21-3.4.5.aar.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.5/tslocationmanager-v21-3.4.5.aar.sha512 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.5/tslocationmanager-v21-3.4.5.pom.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.5/tslocationmanager-v21-3.4.5.pom.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.5/tslocationmanager-v21-3.4.5.pom.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.5/tslocationmanager-v21-3.4.5.pom.sha512 +0 -1
|
@@ -22,6 +22,6 @@ Pod::Spec.new do |s|
|
|
|
22
22
|
s.preserve_paths = 'docs', 'CHANGELOG.md', 'LICENSE', 'package.json', 'RNBackgroundGeolocation.ios.js'
|
|
23
23
|
s.dependency 'CocoaLumberjack', '~> 3.7.2'
|
|
24
24
|
s.source_files = 'ios/RNBackgroundGeolocation/*.{h,m}'
|
|
25
|
-
s.libraries = 'sqlite3', 'z'
|
|
25
|
+
s.libraries = 'sqlite3', 'z', 'stdc++'
|
|
26
26
|
s.vendored_frameworks = 'ios/RNBackgroundGeolocation/TSLocationManager.xcframework'
|
|
27
27
|
end
|
|
Binary file
|
package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5031079de242f57ee400edeabba30f82
|
package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
aeb53630a9bebee2065a035d01967f2579a99fdf
|
package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8ee44ae677f8206387ee05a0ba375f2f7d06029ae29caa883285036061db2366
|
package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.aar.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5a39949f6a0c535deb11fafc06d0d476ecc33669aaac299ef5a18134f958cdbed080d2f4b038a9b70ff8ec46a1d7650d497b0c6171315e9e3560dbca66027b93
|
package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.pom.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3170dbb2783589dda4bc400eada32831
|
package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.pom.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
452ab949bc8f1536f6cbccd7187cb0fb1c7482e7
|
package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.pom.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bb47bb4fcca2c645d541d6c1b143ea4259137536d5308e3ffa89fc1b4dd2f7a7
|
package/android/libs/com/transistorsoft/tslocationmanager/3.5.0/tslocationmanager-3.5.0.pom.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4afada8a0ae6b7c59e073adf0356f2874c267e4c92494a070da428a6e9f6263208277f85e3f5135b1dbdcc5684ac793ac5540c0299a7c3bd645cfd06d40455c7
|
|
@@ -3,15 +3,12 @@
|
|
|
3
3
|
<groupId>com.transistorsoft</groupId>
|
|
4
4
|
<artifactId>tslocationmanager</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>3.
|
|
7
|
-
<release>3.
|
|
6
|
+
<latest>3.5.0</latest>
|
|
7
|
+
<release>3.5.0</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>3.4.
|
|
10
|
-
<version>3.
|
|
11
|
-
<version>3.4.3</version>
|
|
12
|
-
<version>3.4.4</version>
|
|
13
|
-
<version>3.4.5</version>
|
|
9
|
+
<version>3.4.6</version>
|
|
10
|
+
<version>3.5.0</version>
|
|
14
11
|
</versions>
|
|
15
|
-
<lastUpdated>
|
|
12
|
+
<lastUpdated>20230927144045</lastUpdated>
|
|
16
13
|
</versioning>
|
|
17
14
|
</metadata>
|
package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.0/tslocationmanager-v21-3.5.0.aar
ADDED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e2d0900bd59956fc42dbd713feb05843
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7d7bedf6238a6dea89a2b3aeaa840bce883604ed
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3546c2925ac75f065251360b33d5ffe9b719cf96bcd8142e9a3d2e6da57107bd
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24507027eca6ec58b7e7087045bcae80647dc1ba4450b43f5a8ad369d53f3e8b5bc77d5b79e1320eb6babd8e95c4be5af1b9f6b0dd63de1a542761fb44f7e9ce
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ad3b19c11e5247ac020c21322e7f096c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d35fc1a1a0dcd08a4951e15a52e34b299fc72b51
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
317957e96cbc6c21058b91b5b77c9a4ab81fecfc53e7a155e1f8761a97aa678f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
47bbb6fec3a1bb165463d5d85ff6b64bf1dfa61ec1d6de1d4854304b92d246ed66711de31d089decf5cab60cd48af3d1aaaa2e27266c82a6a532b2ef17fa408b
|
|
@@ -3,15 +3,12 @@
|
|
|
3
3
|
<groupId>com.transistorsoft</groupId>
|
|
4
4
|
<artifactId>tslocationmanager-v21</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>3.
|
|
7
|
-
<release>3.
|
|
6
|
+
<latest>3.5.0</latest>
|
|
7
|
+
<release>3.5.0</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>3.4.
|
|
10
|
-
<version>3.
|
|
11
|
-
<version>3.4.3</version>
|
|
12
|
-
<version>3.4.4</version>
|
|
13
|
-
<version>3.4.5</version>
|
|
9
|
+
<version>3.4.6</version>
|
|
10
|
+
<version>3.5.0</version>
|
|
14
11
|
</versions>
|
|
15
|
-
<lastUpdated>
|
|
12
|
+
<lastUpdated>20230927144045</lastUpdated>
|
|
16
13
|
</versioning>
|
|
17
14
|
</metadata>
|
|
@@ -58,6 +58,7 @@ import com.transistorsoft.locationmanager.logger.TSLog;
|
|
|
58
58
|
import com.transistorsoft.locationmanager.device.DeviceSettingsRequest;
|
|
59
59
|
|
|
60
60
|
import java.util.ArrayList;
|
|
61
|
+
import java.util.Arrays;
|
|
61
62
|
import java.util.HashMap;
|
|
62
63
|
import java.util.Iterator;
|
|
63
64
|
import java.util.List;
|
|
@@ -706,7 +707,22 @@ public class RNBackgroundGeolocationModule extends ReactContextBaseJavaModule im
|
|
|
706
707
|
if (config.hasKey("notifyOnDwell")) { builder.setNotifyOnDwell(config.getBoolean("notifyOnDwell")); }
|
|
707
708
|
if (config.hasKey("loiteringDelay")) { builder.setLoiteringDelay(config.getInt("loiteringDelay")); }
|
|
708
709
|
if (config.hasKey("extras")) { builder.setExtras(mapToJson(config.getMap("extras"))); }
|
|
709
|
-
|
|
710
|
+
if (config.hasKey("vertices")) {
|
|
711
|
+
// Polygon Geofence
|
|
712
|
+
List<List<Double>> vertices = new ArrayList<>();
|
|
713
|
+
ReadableArray rows = config.getArray("vertices");
|
|
714
|
+
if (rows != null) {
|
|
715
|
+
for (int i = 0; i < rows.size(); i++) {
|
|
716
|
+
// Each row is a vertex of the Polygon.
|
|
717
|
+
ReadableArray record = rows.getArray(i);
|
|
718
|
+
List<Double> vertex = new ArrayList<>();
|
|
719
|
+
vertex.add(record.getDouble(0)); // latitude
|
|
720
|
+
vertex.add(record.getDouble(1)); // longitude
|
|
721
|
+
vertices.add(vertex);
|
|
722
|
+
}
|
|
723
|
+
builder.setVertices(vertices);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
710
726
|
return builder.build();
|
|
711
727
|
}
|
|
712
728
|
|
|
@@ -439,9 +439,11 @@ RCT_EXPORT_METHOD(addGeofences:(NSArray*) data success:(RCTResponseSenderBlock)s
|
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
-(TSGeofence*) buildGeofence:(NSDictionary*)params {
|
|
442
|
-
|
|
442
|
+
|
|
443
|
+
if (!params[@"identifier"] || (!params[@"vertices"] && (!params[@"radius"] || !params[@"latitude"] || !params[@"longitude"]))) {
|
|
443
444
|
return nil;
|
|
444
445
|
}
|
|
446
|
+
|
|
445
447
|
return [[TSGeofence alloc] initWithIdentifier: params[@"identifier"]
|
|
446
448
|
radius: [params[@"radius"] doubleValue]
|
|
447
449
|
latitude: [params[@"latitude"] doubleValue]
|
|
@@ -450,7 +452,8 @@ RCT_EXPORT_METHOD(addGeofences:(NSArray*) data success:(RCTResponseSenderBlock)s
|
|
|
450
452
|
notifyOnExit: (params[@"notifyOnExit"]) ? [params[@"notifyOnExit"] boolValue] : NO
|
|
451
453
|
notifyOnDwell: (params[@"notifyOnDwell"]) ? [params[@"notifyOnDwell"] boolValue] : NO
|
|
452
454
|
loiteringDelay: (params[@"loiteringDelay"]) ? [params[@"loiteringDelay"] doubleValue] : 0
|
|
453
|
-
extras: params[@"extras"]
|
|
455
|
+
extras: params[@"extras"]
|
|
456
|
+
vertices: params[@"vertices"]];
|
|
454
457
|
}
|
|
455
458
|
|
|
456
459
|
RCT_EXPORT_METHOD(removeGeofence:(NSString*)identifier success:(RCTResponseSenderBlock)success failure:(RCTResponseSenderBlock)failure)
|
|
@@ -6,22 +6,19 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>TSLocationManager.framework</string>
|
|
12
12
|
<key>SupportedArchitectures</key>
|
|
13
13
|
<array>
|
|
14
14
|
<string>arm64</string>
|
|
15
|
-
<string>x86_64</string>
|
|
16
15
|
</array>
|
|
17
16
|
<key>SupportedPlatform</key>
|
|
18
17
|
<string>ios</string>
|
|
19
|
-
<key>SupportedPlatformVariant</key>
|
|
20
|
-
<string>simulator</string>
|
|
21
18
|
</dict>
|
|
22
19
|
<dict>
|
|
23
20
|
<key>LibraryIdentifier</key>
|
|
24
|
-
<string>ios-arm64_x86_64-
|
|
21
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
25
22
|
<key>LibraryPath</key>
|
|
26
23
|
<string>TSLocationManager.framework</string>
|
|
27
24
|
<key>SupportedArchitectures</key>
|
|
@@ -32,19 +29,22 @@
|
|
|
32
29
|
<key>SupportedPlatform</key>
|
|
33
30
|
<string>ios</string>
|
|
34
31
|
<key>SupportedPlatformVariant</key>
|
|
35
|
-
<string>
|
|
32
|
+
<string>simulator</string>
|
|
36
33
|
</dict>
|
|
37
34
|
<dict>
|
|
38
35
|
<key>LibraryIdentifier</key>
|
|
39
|
-
<string>ios-
|
|
36
|
+
<string>ios-arm64_x86_64-maccatalyst</string>
|
|
40
37
|
<key>LibraryPath</key>
|
|
41
38
|
<string>TSLocationManager.framework</string>
|
|
42
39
|
<key>SupportedArchitectures</key>
|
|
43
40
|
<array>
|
|
44
41
|
<string>arm64</string>
|
|
42
|
+
<string>x86_64</string>
|
|
45
43
|
</array>
|
|
46
44
|
<key>SupportedPlatform</key>
|
|
47
45
|
<string>ios</string>
|
|
46
|
+
<key>SupportedPlatformVariant</key>
|
|
47
|
+
<string>maccatalyst</string>
|
|
48
48
|
</dict>
|
|
49
49
|
</array>
|
|
50
50
|
<key>CFBundlePackageType</key>
|
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
@property (nonatomic) BOOL notifyOnExit;
|
|
21
21
|
@property (nonatomic) BOOL notifyOnDwell;
|
|
22
22
|
@property (nonatomic) double loiteringDelay;
|
|
23
|
+
@property (nonatomic) NSDictionary* extras;
|
|
24
|
+
@property (nonatomic) NSArray* vertices;
|
|
23
25
|
/**
|
|
24
26
|
* Arbitrary extra data attached to the geofence
|
|
25
27
|
*/
|
|
26
|
-
@property (nonatomic) NSDictionary *extras;
|
|
27
28
|
|
|
28
29
|
-(instancetype) initWithIdentifier:(NSString*)identifier
|
|
29
30
|
radius:(CLLocationDistance)radius
|
|
@@ -42,9 +43,12 @@
|
|
|
42
43
|
notifyOnExit:(BOOL)notifyOnExit
|
|
43
44
|
notifyOnDwell:(BOOL)notifyOnDwell
|
|
44
45
|
loiteringDelay:(double)loiteringDelay
|
|
45
|
-
extras:(NSDictionary*)extras
|
|
46
|
+
extras:(NSDictionary*)extras
|
|
47
|
+
vertices:(NSArray*)vertices;
|
|
46
48
|
|
|
47
49
|
- (NSDictionary*) toDictionary;
|
|
50
|
+
- (BOOL) isPolygon;
|
|
51
|
+
|
|
48
52
|
|
|
49
53
|
@end
|
|
50
54
|
|
|
@@ -20,16 +20,16 @@ extern NSString *const STATIONARY_REGION_IDENTIFIER;
|
|
|
20
20
|
|
|
21
21
|
@property (copy) void (^onGeofence) (TSGeofenceEvent* event);
|
|
22
22
|
|
|
23
|
-
@property (
|
|
24
|
-
@property (
|
|
25
|
-
@property (
|
|
26
|
-
@property (
|
|
27
|
-
@property (
|
|
28
|
-
@property (
|
|
29
|
-
@property (
|
|
30
|
-
|
|
31
|
-
@property (
|
|
32
|
-
@property (
|
|
23
|
+
@property (atomic) BOOL isMoving;
|
|
24
|
+
@property (atomic) BOOL enabled;
|
|
25
|
+
@property (atomic) BOOL evaluated;
|
|
26
|
+
@property (atomic) BOOL isRequestingLocation;
|
|
27
|
+
@property (atomic) BOOL isMonitoringSignificantChanges;
|
|
28
|
+
@property (atomic) BOOL willEvaluateProximity;
|
|
29
|
+
@property (atomic) CLLocation *lastLocation;
|
|
30
|
+
|
|
31
|
+
@property (atomic, readonly) NSMutableArray *geofencesChangeListeners;
|
|
32
|
+
@property (atomic, readonly) NSMutableArray *geofenceListeners;
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
// Event listeners
|
|
@@ -40,28 +40,28 @@ FOUNDATION_EXPORT NSString* TSLocationManagerVersion;
|
|
|
40
40
|
#pragma mark - Properties
|
|
41
41
|
|
|
42
42
|
// Flags
|
|
43
|
-
@property (
|
|
43
|
+
@property (atomic, readonly) BOOL enabled;
|
|
44
44
|
/// :nodoc:
|
|
45
|
-
@property (
|
|
45
|
+
@property (atomic, readonly) BOOL isConfigured;
|
|
46
46
|
/// :nodoc:
|
|
47
|
-
@property (
|
|
47
|
+
@property (atomic, readonly) BOOL isDebuggingMotionDetection;
|
|
48
48
|
/// :nodoc:
|
|
49
|
-
@property (
|
|
49
|
+
@property (atomic, readonly) BOOL isUpdatingLocation;
|
|
50
50
|
/// :nodoc:
|
|
51
|
-
@property (
|
|
51
|
+
@property (atomic, readonly) BOOL isRequestingLocation;
|
|
52
52
|
/// :nodoc:
|
|
53
|
-
@property (
|
|
53
|
+
@property (atomic, readonly) BOOL isMonitoringSignificantLocationChanges;
|
|
54
54
|
/// :nodoc:
|
|
55
|
-
@property (
|
|
55
|
+
@property (atomic, readonly) NSDate *suspendedAt;
|
|
56
56
|
/// `YES` when the the app was launched in the background.
|
|
57
|
-
@property (
|
|
57
|
+
@property (atomic, readonly) BOOL isLaunchedInBackground;
|
|
58
58
|
|
|
59
59
|
// LocationManagers
|
|
60
60
|
|
|
61
61
|
/// The SDK's `CLLocationManager` instance.
|
|
62
62
|
@property (nonatomic, strong, readonly) CLLocationManager *locationManager;
|
|
63
63
|
|
|
64
|
-
@property (
|
|
64
|
+
@property (atomic) CLLocationDistance distanceFilter;
|
|
65
65
|
|
|
66
66
|
/// :nodoc:
|
|
67
67
|
@property (nonatomic, strong, readonly) LocationManager *currentPositionManager;
|
|
@@ -73,13 +73,13 @@ FOUNDATION_EXPORT NSString* TSLocationManagerVersion;
|
|
|
73
73
|
// Location Resources
|
|
74
74
|
|
|
75
75
|
/// The location used to monitor the SDK's stationary geofence.
|
|
76
|
-
@property (
|
|
76
|
+
@property (atomic, strong, readonly) CLLocation *stationaryLocation;
|
|
77
77
|
/// The last known location.
|
|
78
|
-
@property (
|
|
78
|
+
@property (atomic, strong, readonly) CLLocation *lastLocation;
|
|
79
79
|
/// :nodoc:
|
|
80
|
-
@property (
|
|
80
|
+
@property (atomic, strong, readonly) CLLocation *lastGoodLocation;
|
|
81
81
|
/// :nodoc:
|
|
82
|
-
@property (
|
|
82
|
+
@property (atomic, strong, readonly) CLLocation *lastOdometerLocation;
|
|
83
83
|
|
|
84
84
|
// GeofeneManager
|
|
85
85
|
|
|
@@ -89,60 +89,60 @@ FOUNDATION_EXPORT NSString* TSLocationManagerVersion;
|
|
|
89
89
|
/// The application's `ViewController` instance. Used for presenting dialogs.
|
|
90
90
|
@property (nonatomic) UIViewController* viewController;
|
|
91
91
|
/// :nodoc:
|
|
92
|
-
@property (
|
|
92
|
+
@property (atomic) NSDate *stoppedAt;
|
|
93
93
|
/// :nodoc:
|
|
94
|
-
@property (
|
|
94
|
+
@property (atomic) UIBackgroundTaskIdentifier preventSuspendTask;
|
|
95
95
|
/// :nodoc:
|
|
96
|
-
@property (
|
|
96
|
+
@property (atomic, readonly) BOOL clientReady;
|
|
97
97
|
/// :nodoc:
|
|
98
|
-
@property (
|
|
98
|
+
@property (atomic, readonly) BOOL isAcquiringState;
|
|
99
99
|
/// :nodoc:
|
|
100
|
-
@property (
|
|
100
|
+
@property (atomic, readonly) BOOL wasAcquiringState;
|
|
101
101
|
/// :nodoc:
|
|
102
|
-
@property (
|
|
102
|
+
@property (atomic, readonly) BOOL isAcquiringBackgroundTime;
|
|
103
103
|
/// :nodoc:
|
|
104
|
-
@property (
|
|
104
|
+
@property (atomic, readonly) BOOL isAcquiringStationaryLocation;
|
|
105
105
|
/// :nodoc:
|
|
106
|
-
@property (
|
|
106
|
+
@property (atomic, readonly) BOOL isAcquiringSpeed;
|
|
107
107
|
/// :nodoc:
|
|
108
|
-
@property (
|
|
108
|
+
@property (atomic, readonly) BOOL isHeartbeatEnabled;
|
|
109
109
|
|
|
110
110
|
// Events listeners
|
|
111
111
|
/// :nodoc:
|
|
112
|
-
@property (
|
|
112
|
+
@property (atomic, readonly) NSMutableSet *currentPositionRequests;
|
|
113
113
|
/// :nodoc:
|
|
114
|
-
@property (
|
|
114
|
+
@property (atomic, readonly) NSMutableArray *watchPositionRequests;
|
|
115
115
|
/// :nodoc:
|
|
116
|
-
@property (
|
|
116
|
+
@property (atomic, readonly) NSMutableSet *locationListeners;
|
|
117
117
|
/// :nodoc:
|
|
118
|
-
@property (
|
|
118
|
+
@property (atomic, readonly) NSMutableSet *motionChangeListeners;
|
|
119
119
|
/// :nodoc:
|
|
120
|
-
@property (
|
|
120
|
+
@property (atomic, readonly) NSMutableSet *activityChangeListeners;
|
|
121
121
|
/// :nodoc:
|
|
122
|
-
@property (
|
|
122
|
+
@property (atomic, readonly) NSMutableSet *providerChangeListeners;
|
|
123
123
|
/// :nodoc:
|
|
124
|
-
@property (
|
|
124
|
+
@property (atomic, readonly) NSMutableSet *httpListeners;
|
|
125
125
|
/// :nodoc:
|
|
126
|
-
@property (
|
|
126
|
+
@property (atomic, readonly) NSMutableSet *scheduleListeners;
|
|
127
127
|
/// :nodoc:
|
|
128
|
-
@property (
|
|
128
|
+
@property (atomic, readonly) NSMutableSet *heartbeatListeners;
|
|
129
129
|
/// :nodoc:
|
|
130
|
-
@property (
|
|
130
|
+
@property (atomic, readonly) NSMutableSet *powerSaveChangeListeners;
|
|
131
131
|
/// :nodoc:
|
|
132
|
-
@property (
|
|
132
|
+
@property (atomic, readonly) NSMutableSet *enabledChangeListeners;
|
|
133
133
|
|
|
134
134
|
/// [Optional] User-supplied block to render location-data for SQLite database / Firebase adapter INSERT.
|
|
135
135
|
@property (copy) NSDictionary* (^beforeInsertBlock) (TSLocation *location);
|
|
136
136
|
|
|
137
137
|
/// Callback for requestPermission.
|
|
138
138
|
/// :nodoc:
|
|
139
|
-
@property (
|
|
139
|
+
@property (atomic) TSCallback *requestPermissionCallback;
|
|
140
140
|
|
|
141
141
|
/// Event Queue
|
|
142
142
|
/// :nodoc:
|
|
143
|
-
@property (
|
|
143
|
+
@property (atomic, readonly) NSMutableSet *eventQueue;
|
|
144
144
|
/// :nodoc:
|
|
145
|
-
@property (
|
|
145
|
+
@property (atomic) SOMotionType currentMotionType;
|
|
146
146
|
|
|
147
147
|
/// Returns the API's singleton instance.
|
|
148
148
|
+ (TSLocationManager *)sharedInstance;
|