Position Manager
class PositionManager : NativeMethodsReceiver, SygicContext.OnContextDestroyListener
Content copied to clipboard
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Represents an interface for position update listeners.
Functions
Link copied to clipboard
fun addPositionChangeListener(listener: PositionManager.PositionChangeListener, executor: Executor? = null)
Content copied to clipboard
Adds a PositionChangeListener to the PositionManager .
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> callMethod(clazz: Class<T>, callback: NativeMethodsReceiver.NativeCallback<T>)
Content copied to clipboard
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> getListeners(clazz: Class<T>): MutableMap<T, Executor>
Content copied to clipboard
Link copied to clipboard
fun getRoads( roadIds: List<RoadId>, listener: RoadsListener, executor: Executor? = null)
Content copied to clipboard
Provides details for set of roads.
Link copied to clipboard
fun getTunnelPositionMode(listener: GetTunnelPositionModeListener, executor: Executor? = null)
Content copied to clipboard
Provides current tunnel position mode asynchronously.
Link copied to clipboard
fun match( positions: List<GeoCoordinates>, listener: PositionManager.OnMapMatchingMatched, executor: Executor? = null, precisions: List<Double> = emptyList(), timestamps: List<Long> = emptyList())
Content copied to clipboard
Map matching algorithm, tries to create continuous road sequence of roads representing provided polyline
Link copied to clipboard
Link copied to clipboard
fun projectMatchedGeometry( positions: List<GeoCoordinates>, matchedRoadIds: List<RoadId>, tolerance: Int, listener: PositionManager.OnMatchedGeometryProjected, executor: Executor? = null)
Content copied to clipboard
Snap provided geometry to road sequence.
Link copied to clipboard
Link copied to clipboard
fun removePositionChangeListener(listener: PositionManager.PositionChangeListener)
Content copied to clipboard
Removes a PositionChangeListener to the PositionManager .
Link copied to clipboard
fun setCustomPositionUpdater(customPositionUpdater: CustomPositionUpdater?)
Content copied to clipboard
Sets the custom position data source which can be used for custom position updates GPS location updates will be automatically disabled. To enable call startPositionUpdating()
Link copied to clipboard
fun setTunnelPositionMode( mode: TunnelPositionMode, listener: SetTunnelPositionModeListener, executor: Executor? = null)
Content copied to clipboard
Set current tunnel position mode asynchronously.
Link copied to clipboard
Starts location updates from device GPS
Link copied to clipboard
Stops location updates from device GPS
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> unregister(clazz: Class<T>, listener: T): Int
Content copied to clipboard