react-native-background-geolocation 4.19.1 → 5.0.0-beta.1
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/README.md +1 -1
- package/RNBackgroundGeolocation.podspec +3 -3
- package/android/.settings/org.eclipse.buildship.core.prefs +13 -0
- package/android/build.gradle +21 -56
- package/android/proguard-rules.pro +66 -38
- package/android/src/main/java/com/transistorsoft/rnbackgroundgeolocation/HeadlessTask.java +44 -44
- package/android/src/main/java/com/transistorsoft/rnbackgroundgeolocation/RNBackgroundGeolocation.java +1 -0
- package/android/src/main/java/com/transistorsoft/rnbackgroundgeolocation/RNBackgroundGeolocationModule.java +303 -274
- package/babel.config.js +5 -0
- package/expo/plugin/build/androidPlugin.d.ts +8 -0
- package/expo/plugin/build/androidPlugin.js +127 -0
- package/expo/plugin/build/androidPlugin.js.map +1 -0
- package/expo/plugin/build/iOSPlugin.d.ts +4 -0
- package/expo/plugin/build/iOSPlugin.js +10 -0
- package/expo/plugin/build/iOSPlugin.js.map +1 -0
- package/expo/plugin/build/index.d.ts +16 -0
- package/expo/plugin/build/index.js +23 -0
- package/expo/plugin/build/index.js.map +1 -0
- package/expo/plugin/tsconfig.tsbuildinfo +1 -0
- package/ios/RNBackgroundGeolocation/RNBackgroundGeolocation.m +177 -162
- package/jest.config.js +14 -0
- package/mocks/react-native.js +52 -0
- package/package.json +24 -12
- package/src/DeviceSettings.js +7 -24
- package/src/Logger.js +4 -23
- package/src/NativeModule.js +61 -262
- package/src/{TransistorAuthorizationToken.js → TransistorAuthorizationService.js} +17 -19
- package/src/index.d.ts +13 -1
- package/src/index.js +266 -462
- package/src/native/specs/NativeBackgroundGeolocation.ts +49 -0
- package/tests/enums-bridge-test.js +16 -0
- package/tests/enums.test.js +23 -0
- package/tests/ready-compound.test.js +28 -0
- package/tests/ready.test.js +6 -0
- package/tests-types/config-surface.ts +38 -0
- package/tests-types/enums-smoke-test.ts +35 -0
- package/tests-types/events-typing.ts +23 -0
- package/tests-types/flat-config.ts +0 -0
- package/tests-types/ok.ts +20 -0
- package/tests-types/tsconfig.json +14 -0
- package/typedoc.json +49 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.aar.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.aar.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.aar.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.aar.sha512 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.pom +0 -9
- package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.pom.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.pom.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.pom.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.pom.sha512 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +0 -13
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.aar.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.aar.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.aar.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.aar.sha512 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.pom +0 -9
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.pom.md5 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.pom.sha1 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.pom.sha256 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.pom.sha512 +0 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml +0 -13
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/Info.plist +0 -61
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/_CodeSignature/CodeRequirements +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/_CodeSignature/CodeResources +0 -2033
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/LocationManager.h +0 -55
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/LogQuery.h +0 -13
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSCallback.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSConfig.h +0 -310
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSLocation.h +0 -105
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSReachability.h +0 -106
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
- 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 +0 -525
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Modules/module.modulemap +0 -6
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/PrivacyInfo.xcprivacy +0 -36
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeResources +0 -642
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/LocationManager.h +0 -55
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/LogQuery.h +0 -13
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSCallback.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSConfig.h +0 -310
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocation.h +0 -105
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSReachability.h +0 -106
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Modules/module.modulemap +0 -6
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Info.plist +0 -50
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Miniball/Miniball.hpp +0 -525
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/PrivacyInfo.xcprivacy +0 -36
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeResources +0 -536
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/LocationManager.h +0 -55
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/LogQuery.h +0 -13
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSCallback.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSConfig.h +0 -310
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSLocation.h +0 -105
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSReachability.h +0 -106
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
- 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 +0 -525
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Modules/module.modulemap +0 -6
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/PrivacyInfo.xcprivacy +0 -36
- 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 +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 +0 -642
- package/src/Events.js +0 -17
- package/src/declarations/BackgroundGeolocation.d.ts +0 -1683
- /package/{ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeSignature → tests-types/api-surface.ts} +0 -0
|
@@ -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
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSScheduler.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2016-04-26.
|
|
6
|
-
// Copyright © 2016 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
// TSScheduler
|
|
10
|
-
// TODO This should be decoupled into some sort of plugin
|
|
11
|
-
//
|
|
12
|
-
#import <Foundation/Foundation.h>
|
|
13
|
-
#import <UIKit/UIKit.h>
|
|
14
|
-
#import "TSConnectivityChangeEvent.h"
|
|
15
|
-
#import "TSAuthorizationEvent.h"
|
|
16
|
-
#import "AtomicBoolean.h"
|
|
17
|
-
#import "HttpRequest.h"
|
|
18
|
-
#import "TSReachability.h"
|
|
19
|
-
#import "TSCallback.h"
|
|
20
|
-
|
|
21
|
-
@class TSHttpService;
|
|
22
|
-
|
|
23
|
-
@interface TSHttpService : NSObject
|
|
24
|
-
|
|
25
|
-
#pragma mark - Singleton
|
|
26
|
-
+ (TSHttpService *)sharedInstance;
|
|
27
|
-
|
|
28
|
-
#pragma mark - Properties
|
|
29
|
-
|
|
30
|
-
@property (copy) void (^httpResponseBlock) (HttpRequest *request, HttpResponse *response);
|
|
31
|
-
|
|
32
|
-
@property (nonatomic) AtomicBoolean *isBusy;
|
|
33
|
-
@property (nonatomic) BOOL hasNetworkConnection;
|
|
34
|
-
|
|
35
|
-
@property (nonatomic, readonly) NSMutableArray *syncedRecords;
|
|
36
|
-
@property (nonatomic, readonly) TSReachability *reachability;
|
|
37
|
-
@property (nonatomic, readonly) UIBackgroundTaskIdentifier bgTask;
|
|
38
|
-
|
|
39
|
-
@property (nonatomic, readonly) NSMutableSet *connectivityChangeListeners;
|
|
40
|
-
@property (nonatomic, readonly) NSMutableSet *authorizationListeners;
|
|
41
|
-
|
|
42
|
-
@property (nonatomic) TSCallback *callback;
|
|
43
|
-
@property (nonatomic) long autoSyncThreshold;
|
|
44
|
-
|
|
45
|
-
#pragma mark - Methods
|
|
46
|
-
-(void)flush;
|
|
47
|
-
-(void)flush:(BOOL)overrideSyncThreshold;
|
|
48
|
-
-(void)flush:(void(^)(NSArray*))success failure:(void(^)(NSError*))failure;
|
|
49
|
-
-(void)startMonitoring;
|
|
50
|
-
-(void)stopMonitoring;
|
|
51
|
-
|
|
52
|
-
-(void)onConnectivityChange:(void (^)(TSConnectivityChangeEvent*))success;
|
|
53
|
-
-(void)onAuthorization:(void(^)(TSAuthorizationEvent*))callback;
|
|
54
|
-
-(void)un:(NSString*)event callback:(void(^)(id))callback;
|
|
55
|
-
-(void)removeListeners;
|
|
56
|
-
-(void)removeListeners:(NSString*)event;
|
|
57
|
-
|
|
58
|
-
@end
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TSLocation.h
|
|
3
|
-
// TSLocationManager
|
|
4
|
-
//
|
|
5
|
-
// Created by Christopher Scott on 2017-02-11.
|
|
6
|
-
// Copyright © 2017 Transistor Software. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
@interface TSLocation : NSObject
|
|
10
|
-
|
|
11
|
-
// Location types
|
|
12
|
-
typedef enum tsLocationType : NSInteger {
|
|
13
|
-
TS_LOCATION_TYPE_MOTIONCHANGE = 0,
|
|
14
|
-
TS_LOCATION_TYPE_TRACKING = 1,
|
|
15
|
-
TS_LOCATION_TYPE_CURRENT = 2,
|
|
16
|
-
TS_LOCATION_TYPE_SAMPLE = 3,
|
|
17
|
-
TS_LOCATION_TYPE_WATCH = 4,
|
|
18
|
-
TS_LOCATION_TYPE_GEOFENCE = 5,
|
|
19
|
-
TS_LOCATION_TYPE_HEARTBEAT = 6
|
|
20
|
-
} tsLocationtype;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The native CLLocation instance
|
|
24
|
-
*/
|
|
25
|
-
@property (nonatomic, readonly) CLLocation* location;
|
|
26
|
-
/**
|
|
27
|
-
* Universally unique identifier. The uuid is used to locate the record in the database. It is also posted by default in HTTP requests so your server can determine if a duplicate location has been posted. It's also helpful to match a location received at your server to entries in the plugin logs.
|
|
28
|
-
*/
|
|
29
|
-
@property (nonatomic, readonly) NSString *uuid;
|
|
30
|
-
/**
|
|
31
|
-
* The rendered timestamp in ISO-8851 UTC format (YYYY-MM-dd HH:mm:sssZ)
|
|
32
|
-
*/
|
|
33
|
-
@property (nonatomic, readonly) NSString *timestamp;
|
|
34
|
-
|
|
35
|
-
@property (nonatomic, readonly) NSNumber *age;
|
|
36
|
-
/**
|
|
37
|
-
* The type of location: MOTIONCHANGE|TRACKING|CURRENT|SAMPLE|WATCH|GEOFENCE|HEARTBEAT
|
|
38
|
-
*/
|
|
39
|
-
@property (nonatomic, readonly) enum tsLocationType type;
|
|
40
|
-
/**
|
|
41
|
-
* YES when location was recorded while device is in motion; NO otherwise.
|
|
42
|
-
*/
|
|
43
|
-
@property (nonatomic, readonly) BOOL isMoving;
|
|
44
|
-
/**
|
|
45
|
-
* Arbitrary extras data attached to the location.
|
|
46
|
-
*/
|
|
47
|
-
@property (nonatomic, readonly) NSDictionary* extras;
|
|
48
|
-
/**
|
|
49
|
-
* For internal use only. Geofence data rendered to NSDictionary for posting to server.
|
|
50
|
-
*/
|
|
51
|
-
@property (nonatomic, readonly) NSDictionary* geofence;
|
|
52
|
-
// Battery
|
|
53
|
-
/**
|
|
54
|
-
* YES when device is plugged into power and charging
|
|
55
|
-
*/
|
|
56
|
-
@property (nonatomic, readonly) BOOL batteryIsCharging;
|
|
57
|
-
/**
|
|
58
|
-
* The battery level between 0 (empty) and 1 (full)
|
|
59
|
-
*/
|
|
60
|
-
@property (nonatomic, readonly) NSNumber *batteryLevel;
|
|
61
|
-
// Activity
|
|
62
|
-
/**
|
|
63
|
-
* Activity type rendered as string: still|on_foot|in_vehicle|running|on_bicycle
|
|
64
|
-
*/
|
|
65
|
-
@property (nonatomic, readonly) NSString *activityType;
|
|
66
|
-
/**
|
|
67
|
-
* Confidence of activity-type estimation as % 0-100
|
|
68
|
-
*/
|
|
69
|
-
@property (nonatomic, readonly) NSNumber *activityConfidence;
|
|
70
|
-
// State
|
|
71
|
-
/**
|
|
72
|
-
* YES when recorded location is a sample. The plugin records multiple locations for particular events, such as "motionchange" in order to determine
|
|
73
|
-
* highest accuracy location before persisting that location to the database and POSTing to your configured #url. Location "samples" are not persisted
|
|
74
|
-
* to the plugin's database, nor are they posted to your configured #url
|
|
75
|
-
*/
|
|
76
|
-
@property (nonatomic, readonly) BOOL isSample;
|
|
77
|
-
|
|
78
|
-
@property (nonatomic, readonly) BOOL mock;
|
|
79
|
-
/**
|
|
80
|
-
* YES when this location was provided to a heartbeat event
|
|
81
|
-
*/
|
|
82
|
-
@property (nonatomic, readonly) BOOL isHeartbeat;
|
|
83
|
-
/**
|
|
84
|
-
* The current value of the odometer in meters
|
|
85
|
-
*/
|
|
86
|
-
@property (nonatomic, readonly) NSNumber *odometer;
|
|
87
|
-
/**
|
|
88
|
-
* The event associated with this location: location|motionchange|heartbeat|providerchange
|
|
89
|
-
*/
|
|
90
|
-
@property (nonatomic, readonly) NSString *event;
|
|
91
|
-
|
|
92
|
-
-(instancetype) initWithLocation:(CLLocation*)location;
|
|
93
|
-
-(instancetype) initWithLocation:(CLLocation*)location type:(enum tsLocationType)type extras:(NSDictionary*)extras;
|
|
94
|
-
-(instancetype) initWithLocation:(CLLocation*)location geofence:(NSDictionary*)geofenceData;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Render location-data as JSON string
|
|
98
|
-
*/
|
|
99
|
-
- (NSData*)toJson:(NSError**)error;
|
|
100
|
-
/**
|
|
101
|
-
* Render location-data as NSDictionary
|
|
102
|
-
*/
|
|
103
|
-
- (NSDictionary*)toDictionary;
|
|
104
|
-
|
|
105
|
-
@end
|