@situm/cordova 3.0.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/CHANGELOG.md +3 -0
- package/CHANGELOG_UNRELEASED.md +28 -0
- package/Jenkinsfile +84 -0
- package/LICENSE +21 -0
- package/README.md +472 -0
- package/azure/common-steps.yaml +5 -0
- package/azure-pipelines.yml +336 -0
- package/docs/JSDoc/MapView.html +300 -0
- package/docs/JSDoc/MapViewControllerImpl.html +299 -0
- package/docs/JSDoc/Situm.html +5257 -0
- package/docs/JSDoc/android_Interfaces.js.html +825 -0
- package/docs/JSDoc/android_situm.js.html +380 -0
- package/docs/JSDoc/fonts/glyphicons-halflings-regular.eot +0 -0
- package/docs/JSDoc/fonts/glyphicons-halflings-regular.svg +288 -0
- package/docs/JSDoc/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/docs/JSDoc/fonts/glyphicons-halflings-regular.woff +0 -0
- package/docs/JSDoc/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/docs/JSDoc/global.html +7538 -0
- package/docs/JSDoc/img/toast-ui.png +0 -0
- package/docs/JSDoc/index.html +90 -0
- package/docs/JSDoc/map-view-controller.js.html +307 -0
- package/docs/JSDoc/map-view.js.html +172 -0
- package/docs/JSDoc/scripts/jquery.min.js +2 -0
- package/docs/JSDoc/scripts/linenumber.js +30 -0
- package/docs/JSDoc/scripts/prettify/Apache-License-2.0.txt +202 -0
- package/docs/JSDoc/scripts/prettify/lang-css.js +2 -0
- package/docs/JSDoc/scripts/prettify/prettify.js +28 -0
- package/docs/JSDoc/scripts/tui-doc.js +200 -0
- package/docs/JSDoc/styles/bootstrap.min.css +6 -0
- package/docs/JSDoc/styles/custom.css +23 -0
- package/docs/JSDoc/styles/prettify-jsdoc.css +111 -0
- package/docs/JSDoc/styles/prettify-tomorrow.css +132 -0
- package/docs/JSDoc/styles/tui-doc.css +485 -0
- package/docs/conf.json +28 -0
- package/docs/getting-started.md +298 -0
- package/docs/imagotype-SITUM-transparent-90.png +0 -0
- package/docs/static/styles/custom.css +23 -0
- package/package.json +60 -0
- package/plugin.xml +102 -0
- package/scripts/update_changelog.sh +22 -0
- package/src/android/app/build.gradle +51 -0
- package/src/android/app/proguard-rules.pro +21 -0
- package/src/android/app/src/main/AndroidManifest.xml +11 -0
- package/src/android/app/src/main/java/es/situm/plugin/DateUtils.java +15 -0
- package/src/android/app/src/main/java/es/situm/plugin/PluginHelper.java +919 -0
- package/src/android/app/src/main/java/es/situm/plugin/SitumMapper.java +968 -0
- package/src/android/app/src/main/java/es/situm/plugin/SitumPlugin.java +109 -0
- package/src/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
- package/src/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +34 -0
- package/src/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/src/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- package/src/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/src/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/src/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/src/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/src/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/src/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/src/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/src/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/src/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/src/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/src/android/app/src/main/res/values/colors.xml +6 -0
- package/src/android/app/src/main/res/values/strings.xml +3 -0
- package/src/android/app/src/main/res/values/styles.xml +11 -0
- package/src/android/app/src/test/java/es/situm/plugin/PluginHelperTest.java +27 -0
- package/src/android/app/src/test/java/es/situm/plugin/SitumMapperTest.java +1485 -0
- package/src/android/app/src/test/java/es/situm/plugin/angle/AngleCreator.java +46 -0
- package/src/android/app/src/test/java/es/situm/plugin/bounds/BoundsCreator.java +50 -0
- package/src/android/app/src/test/java/es/situm/plugin/building/BuildingCreator.java +76 -0
- package/src/android/app/src/test/java/es/situm/plugin/cartesianCoordinate/CartesianCoordinateCreator.java +31 -0
- package/src/android/app/src/test/java/es/situm/plugin/circle/CircleCreator.java +41 -0
- package/src/android/app/src/test/java/es/situm/plugin/coordinate/CoordinateCreator.java +32 -0
- package/src/android/app/src/test/java/es/situm/plugin/dimensions/DimensionsCreator.java +31 -0
- package/src/android/app/src/test/java/es/situm/plugin/directionsRequest/DirectionsRequestCreator.java +105 -0
- package/src/android/app/src/test/java/es/situm/plugin/event/EventCreator.java +108 -0
- package/src/android/app/src/test/java/es/situm/plugin/floor/FloorCreator.java +58 -0
- package/src/android/app/src/test/java/es/situm/plugin/indication/IndicationCreator.java +40 -0
- package/src/android/app/src/test/java/es/situm/plugin/location/LocationCreator.java +197 -0
- package/src/android/app/src/test/java/es/situm/plugin/locationRequest/LocationRequestCreator.java +45 -0
- package/src/android/app/src/test/java/es/situm/plugin/locationStatus/LocationStatusCreator.java +211 -0
- package/src/android/app/src/test/java/es/situm/plugin/navigationProgress/NavigationProgressCreator.java +154 -0
- package/src/android/app/src/test/java/es/situm/plugin/poi/PoiCreator.java +126 -0
- package/src/android/app/src/test/java/es/situm/plugin/poiCategory/PoiCategoryCreator.java +38 -0
- package/src/android/app/src/test/java/es/situm/plugin/point/PointCreator.java +200 -0
- package/src/android/app/src/test/java/es/situm/plugin/route/RouteCreator.java +142 -0
- package/src/android/app/src/test/java/es/situm/plugin/routeStep/RouteStepCreator.java +173 -0
- package/src/android/app/src/test/java/es/situm/plugin/situmConversionArea/SitumConversionAreaCreator.java +35 -0
- package/src/android/build.gradle +31 -0
- package/src/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/src/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/src/android/gradle.properties +16 -0
- package/src/android/gradlew +172 -0
- package/src/android/gradlew.bat +84 -0
- package/src/android/settings.gradle +3 -0
- package/src/android/situm.gradle +19 -0
- package/src/ios/Classes/Private/CDVDebug.h +25 -0
- package/src/ios/Classes/Private/CDVJSON_private.h +31 -0
- package/src/ios/Classes/Private/CDVJSON_private.m +99 -0
- package/src/ios/Classes/Private/CDVPlugin+Private.h +24 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVGestureHandler/CDVGestureHandler.h +26 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVGestureHandler/CDVGestureHandler.m +70 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVHandleOpenURL/CDVHandleOpenURL.h +27 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVHandleOpenURL/CDVHandleOpenURL.m +86 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.h +34 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.m +153 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVLocalStorage/CDVLocalStorage.h +50 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVLocalStorage/CDVLocalStorage.m +487 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVLogger/CDVLogger.h +26 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVLogger/CDVLogger.m +37 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewDelegate.h +41 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewDelegate.m +399 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewEngine.h +27 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewEngine.m +202 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.h +29 -0
- package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.m +153 -0
- package/src/ios/Classes/Public/CDV.h +32 -0
- package/src/ios/Classes/Public/CDVAppDelegate.h +28 -0
- package/src/ios/Classes/Public/CDVAppDelegate.m +118 -0
- package/src/ios/Classes/Public/CDVAvailability.h +111 -0
- package/src/ios/Classes/Public/CDVAvailabilityDeprecated.h +26 -0
- package/src/ios/Classes/Public/CDVCommandDelegate.h +51 -0
- package/src/ios/Classes/Public/CDVCommandDelegateImpl.h +36 -0
- package/src/ios/Classes/Public/CDVCommandDelegateImpl.m +186 -0
- package/src/ios/Classes/Public/CDVCommandQueue.h +39 -0
- package/src/ios/Classes/Public/CDVCommandQueue.m +194 -0
- package/src/ios/Classes/Public/CDVConfigParser.h +30 -0
- package/src/ios/Classes/Public/CDVConfigParser.m +81 -0
- package/src/ios/Classes/Public/CDVInvokedUrlCommand.h +52 -0
- package/src/ios/Classes/Public/CDVInvokedUrlCommand.m +116 -0
- package/src/ios/Classes/Public/CDVPlugin+Resources.h +39 -0
- package/src/ios/Classes/Public/CDVPlugin+Resources.m +38 -0
- package/src/ios/Classes/Public/CDVPlugin.h +85 -0
- package/src/ios/Classes/Public/CDVPlugin.m +202 -0
- package/src/ios/Classes/Public/CDVPluginResult.h +66 -0
- package/src/ios/Classes/Public/CDVPluginResult.m +186 -0
- package/src/ios/Classes/Public/CDVScreenOrientationDelegate.h +33 -0
- package/src/ios/Classes/Public/CDVTimer.h +27 -0
- package/src/ios/Classes/Public/CDVTimer.m +123 -0
- package/src/ios/Classes/Public/CDVURLProtocol.h +27 -0
- package/src/ios/Classes/Public/CDVURLProtocol.m +113 -0
- package/src/ios/Classes/Public/CDVUserAgentUtil.h +27 -0
- package/src/ios/Classes/Public/CDVUserAgentUtil.m +124 -0
- package/src/ios/Classes/Public/CDVViewController.h +92 -0
- package/src/ios/Classes/Public/CDVViewController.m +821 -0
- package/src/ios/Classes/Public/CDVWebViewEngineProtocol.h +42 -0
- package/src/ios/Classes/Public/CDVWhitelist.h +34 -0
- package/src/ios/Classes/Public/CDVWhitelist.m +285 -0
- package/src/ios/Classes/Public/NSDictionary+CordovaPreferences.h +35 -0
- package/src/ios/Classes/Public/NSDictionary+CordovaPreferences.m +63 -0
- package/src/ios/Classes/Public/NSMutableArray+QueueAdditions.h +29 -0
- package/src/ios/Classes/Public/NSMutableArray+QueueAdditions.m +58 -0
- package/src/ios/Cordova/Cordova.h +51 -0
- package/src/ios/Cordova/Info.plist +24 -0
- package/src/ios/Podfile +5 -0
- package/src/ios/SitumCordovaPlugin.xcodeproj/project.pbxproj +1324 -0
- package/src/ios/SitumCordovaPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/src/ios/SitumCordovaPlugin.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/src/ios/SitumCordovaPlugin.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/src/ios/SitumCordovaPlugin.xcodeproj/xcshareddata/xcschemes/CordovaLib.xcscheme +100 -0
- package/src/ios/SitumCordovaPlugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/src/ios/SitumCordovaPlugin_Prefix.pch +22 -0
- package/src/ios/VERSION +1 -0
- package/src/ios/cordova.js +2432 -0
- package/src/ios/situmcordovaplugin/AppDelegate.h +22 -0
- package/src/ios/situmcordovaplugin/AppDelegate.m +98 -0
- package/src/ios/situmcordovaplugin/Assets.xcassets/AppIcon.appiconset/Contents.json +98 -0
- package/src/ios/situmcordovaplugin/Base.lproj/LaunchScreen.storyboard +25 -0
- package/src/ios/situmcordovaplugin/Base.lproj/Main.storyboard +24 -0
- package/src/ios/situmcordovaplugin/Constants.h +14 -0
- package/src/ios/situmcordovaplugin/Constants.m +14 -0
- package/src/ios/situmcordovaplugin/Info.plist +45 -0
- package/src/ios/situmcordovaplugin/SITUtils.h +7 -0
- package/src/ios/situmcordovaplugin/SITUtils.m +13 -0
- package/src/ios/situmcordovaplugin/SitumLocationWrapper.h +109 -0
- package/src/ios/situmcordovaplugin/SitumLocationWrapper.m +983 -0
- package/src/ios/situmcordovaplugin/SitumPlugin.h +41 -0
- package/src/ios/situmcordovaplugin/SitumPlugin.m +752 -0
- package/src/ios/situmcordovaplugin/ViewController.h +15 -0
- package/src/ios/situmcordovaplugin/ViewController.m +29 -0
- package/src/ios/situmcordovaplugin/main.m +16 -0
- package/src/ios/situmcordovaplugin/situmcordovaplugin.xcdatamodeld/.xccurrentversion +8 -0
- package/src/ios/situmcordovaplugin/situmcordovaplugin.xcdatamodeld/situmcordovaplugin.xcdatamodel/contents +4 -0
- package/src/ios/situmcordovaplugintests/AngleTests.m +53 -0
- package/src/ios/situmcordovaplugintests/BoundTests.m +51 -0
- package/src/ios/situmcordovaplugintests/BuildingTests.m +41 -0
- package/src/ios/situmcordovaplugintests/CartesianCoordinateTests.m +42 -0
- package/src/ios/situmcordovaplugintests/ConversionAreaTests.m +43 -0
- package/src/ios/situmcordovaplugintests/CoordinateTests.m +42 -0
- package/src/ios/situmcordovaplugintests/DimensionTests.m +43 -0
- package/src/ios/situmcordovaplugintests/EventTests.m +42 -0
- package/src/ios/situmcordovaplugintests/FloorTests.m +52 -0
- package/src/ios/situmcordovaplugintests/Info.plist +38 -0
- package/src/ios/situmcordovaplugintests/InputTests/DirectionsRequestTest.m +108 -0
- package/src/ios/situmcordovaplugintests/InputTests/InputCartesianCoordinateTests.m +45 -0
- package/src/ios/situmcordovaplugintests/InputTests/InputCoordinateTests.m +45 -0
- package/src/ios/situmcordovaplugintests/InputTests/InputFloorTests.m +59 -0
- package/src/ios/situmcordovaplugintests/InputTests/InputIndicationTests.m +45 -0
- package/src/ios/situmcordovaplugintests/InputTests/InputLocationTests.m +163 -0
- package/src/ios/situmcordovaplugintests/InputTests/InputPoiCategoryTests.m +46 -0
- package/src/ios/situmcordovaplugintests/InputTests/InputPointTests.m +137 -0
- package/src/ios/situmcordovaplugintests/InputTests/LocationRequestTest.m +79 -0
- package/src/ios/situmcordovaplugintests/LocationStatusTests.m +60 -0
- package/src/ios/situmcordovaplugintests/LocationTests.m +114 -0
- package/src/ios/situmcordovaplugintests/NavigationProgressTests.m +50 -0
- package/src/ios/situmcordovaplugintests/PoiCategoryIconTests.m +43 -0
- package/src/ios/situmcordovaplugintests/PoiCategoryTests.m +42 -0
- package/src/ios/situmcordovaplugintests/PoiTests.m +83 -0
- package/src/ios/situmcordovaplugintests/PointTests.m +107 -0
- package/src/ios/situmcordovaplugintests/RouteStepTests.m +78 -0
- package/src/ios/situmcordovaplugintests/RouteTests.m +42 -0
- package/src/ios/situmcordovaplugintests/SitumCreatorTests.h +91 -0
- package/src/ios/situmcordovaplugintests/SitumCreatorTests.m +928 -0
- package/src/ios/situmcordovaplugintests/TestingHelper.h +48 -0
- package/src/ios/situmcordovaplugintests/TestingHelper.m +342 -0
- package/src/ios/situmcordovaplugintests/indicationTests.m +43 -0
- package/tests/common-resources/angle/angle1.json +6 -0
- package/tests/common-resources/angle/angle2.json +6 -0
- package/tests/common-resources/bounds/bounds1.json +18 -0
- package/tests/common-resources/bounds/bounds2.json +18 -0
- package/tests/common-resources/building/building1.json +64 -0
- package/tests/common-resources/cartesianCoordinate/cartesianCoordinate1.json +4 -0
- package/tests/common-resources/circle/circle1.json +17 -0
- package/tests/common-resources/coordinate/coordinate1.json +4 -0
- package/tests/common-resources/dimensions/dimensions1.json +4 -0
- package/tests/common-resources/directionsRequest/directionsRequest1.json +166 -0
- package/tests/common-resources/directionsRequest/directionsRequest2.json +167 -0
- package/tests/common-resources/directionsRequest/directionsRequest3.json +166 -0
- package/tests/common-resources/directionsRequest/directionsRequest4.json +166 -0
- package/tests/common-resources/directionsRequest/directionsRequest5.json +167 -0
- package/tests/common-resources/directionsRequest/directionsRequest6.json +153 -0
- package/tests/common-resources/events/event1.json +66 -0
- package/tests/common-resources/floor/floor1.json +13 -0
- package/tests/common-resources/floor/floor2.json +13 -0
- package/tests/common-resources/indication/indication1.json +10 -0
- package/tests/common-resources/location/location1.json +48 -0
- package/tests/common-resources/location/location10.json +48 -0
- package/tests/common-resources/location/location2.json +48 -0
- package/tests/common-resources/location/location3.json +48 -0
- package/tests/common-resources/location/location4.json +48 -0
- package/tests/common-resources/location/location5.json +48 -0
- package/tests/common-resources/location/location6.json +48 -0
- package/tests/common-resources/location/location7.json +48 -0
- package/tests/common-resources/location/location8.json +48 -0
- package/tests/common-resources/location/location9.json +48 -0
- package/tests/common-resources/locationRequest/locationRequest1.json +6 -0
- package/tests/common-resources/locationRequest/locationRequest2.json +32 -0
- package/tests/common-resources/locationRequest/locationRequest3.json +33 -0
- package/tests/common-resources/locationRequest/locationRequest4.json +31 -0
- package/tests/common-resources/locationStatus/locationStatus1.json +4 -0
- package/tests/common-resources/locationStatus/locationStatus10.json +4 -0
- package/tests/common-resources/locationStatus/locationStatus11.json +4 -0
- package/tests/common-resources/locationStatus/locationStatus12.json +4 -0
- package/tests/common-resources/locationStatus/locationStatus13.json +4 -0
- package/tests/common-resources/locationStatus/locationStatus2.json +4 -0
- package/tests/common-resources/locationStatus/locationStatus3.json +4 -0
- package/tests/common-resources/locationStatus/locationStatus4.json +4 -0
- package/tests/common-resources/locationStatus/locationStatus5.json +4 -0
- package/tests/common-resources/locationStatus/locationStatus6.json +4 -0
- package/tests/common-resources/locationStatus/locationStatus7.json +4 -0
- package/tests/common-resources/locationStatus/locationStatus8.json +4 -0
- package/tests/common-resources/locationStatus/locationStatus9.json +4 -0
- package/tests/common-resources/navigationProgress/navigationProgress1.json +77 -0
- package/tests/common-resources/navigationProgress/navigationProgress2.json +77 -0
- package/tests/common-resources/poi/poi1.json +35 -0
- package/tests/common-resources/poi/poi2.json +35 -0
- package/tests/common-resources/poi/poi3.json +35 -0
- package/tests/common-resources/poi/poi4.json +38 -0
- package/tests/common-resources/poi/poi5.json +35 -0
- package/tests/common-resources/poiCategory/poiCategory1.json +7 -0
- package/tests/common-resources/poiCategoryIcon/poiCategoryIcon1.json +1 -0
- package/tests/common-resources/poiCategoryIcon/poiCategoryIcon1.png +0 -0
- package/tests/common-resources/point/point1.json +14 -0
- package/tests/common-resources/point/point2.json +14 -0
- package/tests/common-resources/point/point3.json +14 -0
- package/tests/common-resources/point/point4.json +14 -0
- package/tests/common-resources/point/point5.json +14 -0
- package/tests/common-resources/point/point6.json +14 -0
- package/tests/common-resources/point/point7.json +14 -0
- package/tests/common-resources/point/point8.json +14 -0
- package/tests/common-resources/route/route1.json +530 -0
- package/tests/common-resources/routeStep/routeStep1.json +35 -0
- package/tests/common-resources/routeStep/routeStep2.json +35 -0
- package/tests/common-resources/routeStep/routeStep3.json +35 -0
- package/tests/common-resources/routeStep/routeStep4.json +35 -0
- package/tests/common-resources/routeStep/routeStep5.json +35 -0
- package/tests/common-resources/situmConversionArea/situmConversionArea1.json +19 -0
- package/tests/js/resources/fetchBuildings.json +176 -0
- package/tests/js/resources/fetchEventsFromBuilding.json +201 -0
- package/tests/js/resources/fetchFloorsFromBuilding.json +34 -0
- package/tests/js/resources/fetchIndoorPOIsFromBuilding.json +574 -0
- package/tests/js/resources/fetchMapFromFloor.json +3 -0
- package/tests/js/resources/fetchOutdoorPOIsFromBuilding.json +68 -0
- package/tests/js/resources/fetchPoiCategories.json +72 -0
- package/tests/js/resources/fetchPoiCategoryIconNormal.json +3 -0
- package/tests/js/resources/fetchPoiCategoryIconSelected.json +3 -0
- package/tests/js/resources/requestDirections.json +1167 -0
- package/tests/js/resources/startPositioning/0_starting.json +4 -0
- package/tests/js/resources/startPositioning/1_preparingPositioningModel.json +4 -0
- package/tests/js/resources/startPositioning/2_startingPositioning.json +4 -0
- package/tests/js/resources/startPositioning/3_calculating.json +4 -0
- package/tests/js/resources/startPositioning/4_position.json +48 -0
- package/tests/js/resources/startPositioning/5_position.json +48 -0
- package/tests/js/test.js +416 -0
- package/tests/scripts/clean_android_resources.sh +3 -0
- package/tests/scripts/clean_ios_resources.sh +3 -0
- package/tests/scripts/copy_android_resources.sh +3 -0
- package/tests/scripts/copy_ios_resources.sh +3 -0
- package/tests/scripts/self-destruct.sh +1 -0
- package/www/android/Interfaces.js +742 -0
- package/www/android/situm.js +296 -0
- package/www/ios/situm.js +99 -0
- package/www/map-view-controller.js +223 -0
- package/www/map-view.js +88 -0
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
<!DOCTYPE html>
|
|
4
|
+
<html lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<meta charset="utf-8">
|
|
7
|
+
<title>Source: android/situm.js | Situm</title>
|
|
8
|
+
|
|
9
|
+
<script src="scripts/prettify/prettify.js"> </script>
|
|
10
|
+
<script src="scripts/prettify/lang-css.js"> </script>
|
|
11
|
+
<!--[if lt IE 9]>
|
|
12
|
+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
13
|
+
<![endif]-->
|
|
14
|
+
<link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
|
|
15
|
+
<link type="text/css" rel="stylesheet" href="styles/prettify-jsdoc.css">
|
|
16
|
+
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
|
17
|
+
<link type="text/css" rel="stylesheet" href="styles/tui-doc.css">
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<link type="text/css" rel="stylesheet" href="styles/custom.css">
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
</head>
|
|
25
|
+
<body>
|
|
26
|
+
<nav class="lnb" id="lnb">
|
|
27
|
+
<div class="logo" style="width: 90px; height: 90px">
|
|
28
|
+
|
|
29
|
+
<a href="https://github.com/situmtech/situm-cordova-plugin" rel="noopener noreferrer" target="_blank">
|
|
30
|
+
<img src="https://situm.com/wp-content/uploads/2023/04/situm_logo_blanco_300_sq.png" width="100%" height="100%">
|
|
31
|
+
</a>
|
|
32
|
+
|
|
33
|
+
</div>
|
|
34
|
+
<div class="title">
|
|
35
|
+
<h1><a href="index.html" class="link">Situm</a></h1>
|
|
36
|
+
|
|
37
|
+
</div>
|
|
38
|
+
<div class="search-container" id="search-container">
|
|
39
|
+
<input type="text" placeholder="Search">
|
|
40
|
+
<ul></ul>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div class="lnb-api hidden"><h3>Namespaces</h3><ul><li><a href="MapView.html">MapView</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="MapView_sub"><div class="member-type">Methods</div><ul class="inner"><li><a href="MapView.html#.onLoad">onLoad</a></li></ul></div></li><li><a href="MapViewControllerImpl.html">MapViewControllerImpl</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="MapViewControllerImpl_sub"><div class="member-type">Methods</div><ul class="inner"><li><a href="MapViewControllerImpl.html#selectPoi">selectPoi</a></li></ul></div></li><li><a href="Situm.html">Situm</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Situm_sub"><div class="member-type">Methods</div><ul class="inner"><li><a href="Situm.html#.fetchBuildingInfo">fetchBuildingInfo</a></li><li><a href="Situm.html#.fetchBuildings">fetchBuildings</a></li><li><a href="Situm.html#.fetchEventsFromBuilding">fetchEventsFromBuilding</a></li><li><a href="Situm.html#.fetchFloorsFromBuilding">fetchFloorsFromBuilding</a></li><li><a href="Situm.html#.fetchGeofencesFromBuilding">fetchGeofencesFromBuilding</a></li><li><a href="Situm.html#.fetchIndoorPOIsFromBuilding">fetchIndoorPOIsFromBuilding</a></li><li><a href="Situm.html#.fetchMapFromFloor">fetchMapFromFloor</a></li><li><a href="Situm.html#.fetchOutdoorPOIsFromBuilding">fetchOutdoorPOIsFromBuilding</a></li><li><a href="Situm.html#.fetchPoiCategories">fetchPoiCategories</a></li><li><a href="Situm.html#.fetchPoiCategoryIconNormal">fetchPoiCategoryIconNormal</a></li><li><a href="Situm.html#.fetchPoiCategoryIconSelected">fetchPoiCategoryIconSelected</a></li><li><a href="Situm.html#.internalSetEventDelegate">internalSetEventDelegate</a></li><li><a href="Situm.html#.invalidateCache">invalidateCache</a></li><li><a href="Situm.html#.onEnterGeofences">onEnterGeofences</a></li><li><a href="Situm.html#.onExitGeofences">onExitGeofences</a></li><li><a href="Situm.html#.removeNavigationUpdates">removeNavigationUpdates</a></li><li><a href="Situm.html#.removeRealTimeUpdates">removeRealTimeUpdates</a></li><li><a href="Situm.html#.requestDirections">requestDirections</a></li><li><a href="Situm.html#.requestNavigationUpdates">requestNavigationUpdates</a></li><li><a href="Situm.html#.requestRealTimeUpdates">requestRealTimeUpdates</a></li><li><a href="Situm.html#.setApiKey">setApiKey</a></li><li><a href="Situm.html#.setCacheMaxAge">setCacheMaxAge</a></li><li><a href="Situm.html#.setUserPass">setUserPass</a></li><li><a href="Situm.html#.startPositioning">startPositioning</a></li><li><a href="Situm.html#.stopPositioning">stopPositioning</a></li><li><a href="Situm.html#.updateNavigationWithLocation">updateNavigationWithLocation</a></li></ul></div></li></ul></div><div class="lnb-api hidden"><h3>Global</h3><ul><li><a href="global.html#Angle">Angle</a></li><li><a href="global.html#BeaconFilter">BeaconFilter</a></li><li><a href="global.html#Bounds">Bounds</a></li><li><a href="global.html#Building">Building</a></li><li><a href="global.html#BuildingInfo">BuildingInfo</a></li><li><a href="global.html#CartesianCoordinate">CartesianCoordinate</a></li><li><a href="global.html#Circle">Circle</a></li><li><a href="global.html#Coordinate">Coordinate</a></li><li><a href="global.html#Dimensions">Dimensions</a></li><li><a href="global.html#DirectionsOptions">DirectionsOptions</a></li><li><a href="global.html#DirectionsRequest">DirectionsRequest</a></li><li><a href="global.html#Floor">Floor</a></li><li><a href="global.html#Geofence">Geofence</a></li><li><a href="global.html#Indication">Indication</a></li><li><a href="global.html#Location">Location</a></li><li><a href="global.html#LocationOptions">LocationOptions</a></li><li><a href="global.html#LocationRequest">LocationRequest</a></li><li><a href="global.html#LocationStatus">LocationStatus</a></li><li><a href="global.html#NavigationProgress">NavigationProgress</a></li><li><a href="global.html#NavigationRequest">NavigationRequest</a></li><li><a href="global.html#OutdoorLocationOptions">OutdoorLocationOptions</a></li><li><a href="global.html#POI">POI</a></li><li><a href="global.html#PoiCategory">PoiCategory</a></li><li><a href="global.html#Point">Point</a></li><li><a href="global.html#RealTimeData">RealTimeData</a></li><li><a href="global.html#RealTimeRequest">RealTimeRequest</a></li><li><a href="global.html#Route">Route</a></li><li><a href="global.html#RouteSegment">RouteSegment</a></li><li><a href="global.html#RouteStep">RouteStep</a></li><li><a href="global.html#SitumConversionArea">SitumConversionArea</a></li><li><a href="global.html#SitumEvent">SitumEvent</a></li></ul></div>
|
|
44
|
+
</nav>
|
|
45
|
+
<div id="resizer"></div>
|
|
46
|
+
|
|
47
|
+
<div class="main" id="main">
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
<section>
|
|
54
|
+
<article>
|
|
55
|
+
<pre class="prettyprint source linenums"><code>var exec = require('cordova/exec');
|
|
56
|
+
|
|
57
|
+
var PLUGIN_NAME = 'Situm';
|
|
58
|
+
let _internalEventDelegate = undefined;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @namespace Situm
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
var Situm = {
|
|
65
|
+
/**
|
|
66
|
+
* An internal method.
|
|
67
|
+
* @param {internalEventDelegate} callback.
|
|
68
|
+
*/
|
|
69
|
+
internalSetEventDelegate: function (callback) {
|
|
70
|
+
_internalEventDelegate = callback;
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* Provides your API key to the Situm SDK.
|
|
74
|
+
* @description Provides your API key to the Situm SDK. This key is generated for your application in the Dashboard. Old credentials will be removed.
|
|
75
|
+
* @param {string} email Email that identifies the account. Can't be empty.
|
|
76
|
+
* @param {string} apiKey Key obtained at situm.es. Can't be empty.
|
|
77
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
78
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
79
|
+
* @return {boolean} success True if operation finished successfully, otherwise false
|
|
80
|
+
*/
|
|
81
|
+
setApiKey: function (email, apiKey, cb, error) {
|
|
82
|
+
exec(cb, error, PLUGIN_NAME, 'setApiKey', [email, apiKey]);
|
|
83
|
+
},
|
|
84
|
+
setUseRemoteConfig: function (useRemoteConfig, cb, error) {
|
|
85
|
+
exec(cb, error, PLUGIN_NAME, 'setUseRemoteConfig', [useRemoteConfig]);
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* Provides user's email and password.
|
|
89
|
+
* @description Provides user's email and password. This credentials will be used to obtain a valid user token to authenticate the server request, when necessary. Token obtaining is not necessary done when this method is executed. Old credentials will be removed.
|
|
90
|
+
* @param {string} email User's email. Can't be empty.
|
|
91
|
+
* @param {string} password User's password. Can't be empty.
|
|
92
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
93
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
94
|
+
* @return {boolean} success True if operation finished successfully, otherwise false
|
|
95
|
+
*/
|
|
96
|
+
setUserPass: function (email, password, cb, error) {
|
|
97
|
+
exec(cb, error, PLUGIN_NAME, 'setUserPass', [email, password]);
|
|
98
|
+
},
|
|
99
|
+
/**
|
|
100
|
+
* Sets the maximum age of a cached response.
|
|
101
|
+
* @description Sets the maximum age of a cached response. If the cache response's age exceeds maxAge, it will not be used and a network request will be made.
|
|
102
|
+
* @param {number} cacheAge A non-negative integer
|
|
103
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
104
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
105
|
+
* @return {void}
|
|
106
|
+
*/
|
|
107
|
+
setCacheMaxAge: function (cacheAge, cb, error) {
|
|
108
|
+
exec(cb, error, PLUGIN_NAME, 'setCacheMaxAge', [cacheAge]);
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
* Set callback and starts listen onLocationChanged event.
|
|
112
|
+
* @param {LocationRequest} request Location Request.
|
|
113
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
114
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
115
|
+
* @return {Location} position Current position of device.
|
|
116
|
+
*/
|
|
117
|
+
startPositioning: function (request, cb, error) {
|
|
118
|
+
let internalCallback = (res) => {
|
|
119
|
+
_internalEventDelegate('onLocationUpdate', res);
|
|
120
|
+
cb(res);
|
|
121
|
+
};
|
|
122
|
+
exec(internalCallback, error, PLUGIN_NAME, 'startPositioning', request);;
|
|
123
|
+
},
|
|
124
|
+
/**
|
|
125
|
+
* Stop locationListener on current active listener.
|
|
126
|
+
* @description Stop locationListener on current active listener.
|
|
127
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
128
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
129
|
+
* @return {void}
|
|
130
|
+
*/
|
|
131
|
+
stopPositioning: function (cb, error) {
|
|
132
|
+
exec(cb, error, PLUGIN_NAME, 'stopPositioning', []);
|
|
133
|
+
},
|
|
134
|
+
/**
|
|
135
|
+
* Get notified about users entering geofences. Take into account:
|
|
136
|
+
* * This method must be called before the positioning is started.
|
|
137
|
+
* * Positioning geofences (with `trainer_metadata` custom field configured in the dashboard (https://situm.com/docs/special-custom-fields/#activating-the-uncalibrated-indoor-geolocation-mode)) won't be notified.
|
|
138
|
+
* * This callback works only with indoor locations. Any outdoor location will produce a call to onExitGeofences with the last positioned geofences as argument.
|
|
139
|
+
* @description Set the geofence listener to receive updates when you enter or exit one of them.
|
|
140
|
+
* @param {function} cb Cordova native callback to recive data. The data is an array of geofences.
|
|
141
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
142
|
+
* @return {Geofence[]}
|
|
143
|
+
*/
|
|
144
|
+
onEnterGeofences: function (cb, error) {
|
|
145
|
+
exec(cb, error, PLUGIN_NAME, 'onEnterGeofences', []);
|
|
146
|
+
},
|
|
147
|
+
/**
|
|
148
|
+
* Get notified about exiting geofences. Take into account the considerations described at onEnterGeofences
|
|
149
|
+
* @description Set the geofence listener to receive updates when you enter or exit one of them.
|
|
150
|
+
* @param {function} cb Cordova native callback to recive data. The data is an array of geofences.
|
|
151
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
152
|
+
* @return {Geofence[]}
|
|
153
|
+
*/
|
|
154
|
+
onExitGeofences: function (cb, error) {
|
|
155
|
+
exec(cb, error, PLUGIN_NAME, 'onExitGeofences', []);
|
|
156
|
+
},
|
|
157
|
+
/**
|
|
158
|
+
* Download all the buildings for the current user.
|
|
159
|
+
* @description Download all the buildings for the current user
|
|
160
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
161
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
162
|
+
* @return {Building[]} buildings Array of buildings.
|
|
163
|
+
*/
|
|
164
|
+
fetchBuildings: function (cb, error) {
|
|
165
|
+
exec(cb, error, PLUGIN_NAME, 'fetchBuildings', []);
|
|
166
|
+
},
|
|
167
|
+
/**
|
|
168
|
+
* Download all the floors of a building.
|
|
169
|
+
* @description Download all the floors of a building
|
|
170
|
+
* @param {Building} building The building. Not null.
|
|
171
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
172
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
173
|
+
* @return {Floor[]} floors Array of floors.
|
|
174
|
+
*/
|
|
175
|
+
fetchFloorsFromBuilding: function (building, cb, error) {
|
|
176
|
+
exec(cb, error, PLUGIN_NAME, 'fetchFloorsFromBuilding', [building]);
|
|
177
|
+
},
|
|
178
|
+
/**
|
|
179
|
+
* Download the indoor POIs of a building.
|
|
180
|
+
* @description Download the indoor POIs of a building
|
|
181
|
+
* @param {Building} building The building. Not null.
|
|
182
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
183
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
184
|
+
* @return {Poi[]} pois Array of POIs
|
|
185
|
+
*/
|
|
186
|
+
fetchIndoorPOIsFromBuilding: function (building, cb, error) {
|
|
187
|
+
exec(cb, error, PLUGIN_NAME, 'fetchIndoorPOIsFromBuilding', [building]);
|
|
188
|
+
},
|
|
189
|
+
/**
|
|
190
|
+
* Download the outdoor POIs of a building.
|
|
191
|
+
* @description Download the outdoor POIs of a building
|
|
192
|
+
* @param {Building} building The building. Not null.
|
|
193
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
194
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
195
|
+
* @return {Poi[]} pois Array of POIs
|
|
196
|
+
*/
|
|
197
|
+
fetchOutdoorPOIsFromBuilding: function (building, cb, error) {
|
|
198
|
+
exec(cb, error, PLUGIN_NAME, 'fetchOutdoorPOIsFromBuilding', [building]);
|
|
199
|
+
},
|
|
200
|
+
/**
|
|
201
|
+
* Download the events of a building.
|
|
202
|
+
* @description Download the events of a building
|
|
203
|
+
* @param {Building} building The building. Not null.
|
|
204
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
205
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
206
|
+
* @return {event[]} events The events of a building
|
|
207
|
+
*/
|
|
208
|
+
fetchEventsFromBuilding: function (building, cb, error) {
|
|
209
|
+
exec(cb, error, PLUGIN_NAME, 'fetchEventsFromBuilding', [building]);
|
|
210
|
+
},
|
|
211
|
+
/**
|
|
212
|
+
* Get all POI categories, download and cache their icons asynchronously.
|
|
213
|
+
* @description Get all POI categories, download and cache their icons asynchronously. To get some of those icons from local storage @see {@link fetchPoiCategoryIconNormal(PoiCategory)} or {@link fetchPoiCategoryIconSelected(PoiCategory)}
|
|
214
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
215
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
216
|
+
* @return {PoiCategory[]} poiCategories The poiCategories array
|
|
217
|
+
*/
|
|
218
|
+
fetchPoiCategories: function (cb, error) {
|
|
219
|
+
exec(cb, error, PLUGIN_NAME, 'fetchPoiCategories');
|
|
220
|
+
},
|
|
221
|
+
/**
|
|
222
|
+
* Download the map image of a floor
|
|
223
|
+
* @description Download the map image of a floor
|
|
224
|
+
* @param {Floor} floor The floor. Not null.
|
|
225
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
226
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
227
|
+
* @return {bitmap} map The map image
|
|
228
|
+
*/
|
|
229
|
+
fetchMapFromFloor: function (floor, cb, error) {
|
|
230
|
+
exec(cb, error, PLUGIN_NAME, 'fetchMapFromFloor', [floor]);
|
|
231
|
+
},
|
|
232
|
+
/**
|
|
233
|
+
* Get the normal category icon for a category.
|
|
234
|
+
* @description Get the normal category icon for a category
|
|
235
|
+
* @param {PoiCategory} category The category. Not null.
|
|
236
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
237
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
238
|
+
* @return {bitmap} icon The category icon
|
|
239
|
+
*/
|
|
240
|
+
fetchPoiCategoryIconNormal: function (category, cb, error) {
|
|
241
|
+
exec(cb, error, PLUGIN_NAME, 'fetchPoiCategoryIconNormal', [category]);
|
|
242
|
+
},
|
|
243
|
+
/**
|
|
244
|
+
* Get the selected category icon for a category.
|
|
245
|
+
* @description Get the selected category icon for a category
|
|
246
|
+
* @param {PoiCategory} category The category. Not null.
|
|
247
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
248
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
249
|
+
* @return {bitmap} icon The category icon
|
|
250
|
+
*/
|
|
251
|
+
fetchPoiCategoryIconSelected: function (category, cb, error) {
|
|
252
|
+
exec(cb, error, PLUGIN_NAME, 'fetchPoiCategoryIconSelected', [category]);
|
|
253
|
+
},
|
|
254
|
+
/**
|
|
255
|
+
* Download all the information of a building.
|
|
256
|
+
* @description Download the information of a building (floors, pois, basic information, ...)
|
|
257
|
+
* @param {Building} building The building identifier. Not null.
|
|
258
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
259
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
260
|
+
* @return {BuildingInfo} buildingInfo structure
|
|
261
|
+
*/
|
|
262
|
+
fetchBuildingInfo: function (building, cb, error) {
|
|
263
|
+
exec(cb, error, PLUGIN_NAME, 'fetchBuildingInfo', [building]);
|
|
264
|
+
},
|
|
265
|
+
/**
|
|
266
|
+
* Download all the information of a building.
|
|
267
|
+
* @description Download the indoor POIs of a building
|
|
268
|
+
* @param {Int} buildingIdentifier The building identifier. Not null.
|
|
269
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
270
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
271
|
+
* @return {Building[]} pois Array of POIs
|
|
272
|
+
*/
|
|
273
|
+
fetchGeofencesFromBuilding: function (building, cb, error) {
|
|
274
|
+
exec(cb, error, PLUGIN_NAME, 'fetchGeofencesFromBuilding', [building]);
|
|
275
|
+
},
|
|
276
|
+
/**
|
|
277
|
+
* Invalidate all the resources in the cache.
|
|
278
|
+
* @description Invalidate all the resources in the cache
|
|
279
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
280
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
281
|
+
* @return {void}
|
|
282
|
+
*/
|
|
283
|
+
invalidateCache: function (cb, error) {
|
|
284
|
+
exec(cb, error, PLUGIN_NAME, 'invalidateCache');
|
|
285
|
+
},
|
|
286
|
+
/**
|
|
287
|
+
* Calculates a route between two points.
|
|
288
|
+
* @description Calculates a route between two points.
|
|
289
|
+
* @param {DirectionsRequest} directionsRequest Request - non-null search parameters.
|
|
290
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
291
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
292
|
+
* @return {Route} route The route between provided points
|
|
293
|
+
*/
|
|
294
|
+
requestDirections: function (directionsRequest, cb, error) {
|
|
295
|
+
exec(cb, error, PLUGIN_NAME, 'requestDirections', directionsRequest);
|
|
296
|
+
},
|
|
297
|
+
/**
|
|
298
|
+
* Set the navigation params, and the listener that receives the updated navigation progress.
|
|
299
|
+
* @description Set the navigation params, and the listener that receives the updated navigation progress. Can only exist one navigation with one listener at a time. If this method was previously invoked, but removeUpdates() wasn't, removeUpdates() is called internally.
|
|
300
|
+
* @param {NavigationRequest} navigationRequest Request non-null search parameters.
|
|
301
|
+
* @param {function} cb Cordova native callback to recive data. See {@link NavigationProgress}
|
|
302
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
303
|
+
* @return {void}
|
|
304
|
+
*/
|
|
305
|
+
requestNavigationUpdates: function (navigationRequest, cb, error) {
|
|
306
|
+
exec(cb, error, PLUGIN_NAME, 'requestNavigationUpdates', navigationRequest);
|
|
307
|
+
},
|
|
308
|
+
/**
|
|
309
|
+
* Informs NavigationManager object the change of the user's location.
|
|
310
|
+
* @description Informs NavigationManager object the change of the user's location.
|
|
311
|
+
* @param {Location} location New Location of the user. If null, nothing is done.
|
|
312
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
313
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
314
|
+
* @return {boolean} success True if there is a listener to which notify progress update. False if there isn't, so this method do nothing.
|
|
315
|
+
*/
|
|
316
|
+
updateNavigationWithLocation: function (location, cb, error) {
|
|
317
|
+
exec(cb, error, PLUGIN_NAME, 'updateNavigationWithLocation', [location]);
|
|
318
|
+
},
|
|
319
|
+
/**
|
|
320
|
+
* Removes all location updates.
|
|
321
|
+
* @description Removes all location updates. This removes the internal state of the manager, including the listener provided in requestNavigationUpdates(NavigationRequest, NavigationListener), so it won't receive more progress updates.
|
|
322
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
323
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
324
|
+
* @return {boolean} success True if a listener was removed. False if there was no listener.
|
|
325
|
+
*/
|
|
326
|
+
removeNavigationUpdates: function (cb, error) {
|
|
327
|
+
exec(cb, error, PLUGIN_NAME, 'removeNavigationUpdates', []);
|
|
328
|
+
},
|
|
329
|
+
// Realtime
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Set the realtime params and listener that receives realtime location updates
|
|
333
|
+
* @param {RealTimeRequest} request Request - non-null search parameters.
|
|
334
|
+
* @param {fuction} cb Cordova native callback to recive data.
|
|
335
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
336
|
+
*/
|
|
337
|
+
requestRealTimeUpdates: function (request, cb, error) {
|
|
338
|
+
exec(cb, error, PLUGIN_NAME, 'requestRealTimeUpdates', [request]);
|
|
339
|
+
},
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Stops receiving updates in realtime about user location.
|
|
343
|
+
* @param {function} cb Cordova native callback to recive data.
|
|
344
|
+
* @param {function} error Cordova native callback to recive errors.
|
|
345
|
+
*/
|
|
346
|
+
removeRealTimeUpdates: function(cb, error) {
|
|
347
|
+
exec(cb, error, PLUGIN_NAME, 'removeRealTimeUpdates', []);
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
module.exports = Situm;
|
|
351
|
+
</code></pre>
|
|
352
|
+
</article>
|
|
353
|
+
</section>
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
</div>
|
|
359
|
+
|
|
360
|
+
<footer>
|
|
361
|
+
<img class="logo" src="https://situm.com/wp-content/uploads/2023/04/situm_logo_blanco_300_sq.png" style="width: 90px; height: 90px">
|
|
362
|
+
<div class="footer-text">COPYRIGHT © SITUM TECHNOLOGIES 2014 - 2018</div>
|
|
363
|
+
</footer>
|
|
364
|
+
<script>prettyPrint();</script>
|
|
365
|
+
<script src="scripts/jquery.min.js"></script>
|
|
366
|
+
<script src="scripts/tui-doc.js"></script>
|
|
367
|
+
<script src="scripts/linenumber.js"></script>
|
|
368
|
+
|
|
369
|
+
<script>
|
|
370
|
+
var id = '_sub'.replace(/"/g, '_');
|
|
371
|
+
var selectedApi = document.getElementById(id); // do not use jquery selector
|
|
372
|
+
var $selectedApi = $(selectedApi);
|
|
373
|
+
|
|
374
|
+
$selectedApi.removeClass('hidden');
|
|
375
|
+
$selectedApi.parent().find('.glyphicon').removeClass('glyphicon-plus').addClass('glyphicon-minus');
|
|
376
|
+
showLnbApi();
|
|
377
|
+
</script>
|
|
378
|
+
|
|
379
|
+
</body>
|
|
380
|
+
</html>
|
|
Binary file
|