IOSMapLibreNavigation

class IOSMapLibreNavigation(options: MapLibreNavigationOptions = MapLibreNavigationOptions(), locationEngine: LocationEngine = AppleLocationEngine(), cameraEngine: Camera = SimpleCamera(), snapEngine: Snap = SnapToRoute(), offRouteEngine: OffRoute = OffRouteDetector(), fasterRouteEngine: FasterRoute = FasterRouteDetector(options), routeUtils: RouteUtils = RouteUtils()) : MapLibreNavigation

A iOS platform specific wrapper for MapLibreNavigation.

You can also use MapLibreNavigation directly, but this leads to more configuration.

Currently the only difference is, that the location engine is set to the AppleLocationEngine by default.

Constructors

Link copied to clipboard
constructor(options: MapLibreNavigationOptions = MapLibreNavigationOptions(), locationEngine: LocationEngine = AppleLocationEngine(), cameraEngine: Camera = SimpleCamera(), snapEngine: Snap = SnapToRoute(), offRouteEngine: OffRoute = OffRouteDetector(), fasterRouteEngine: FasterRoute = FasterRouteDetector(options), routeUtils: RouteUtils = RouteUtils())

Properties

Link copied to clipboard
var cameraEngine: Camera
Link copied to clipboard
val eventDispatcher: NavigationEventDispatcher
Link copied to clipboard
var fasterRouteEngine: FasterRoute
Link copied to clipboard
var locationEngine: LocationEngine
Link copied to clipboard
val milestones: Set<Milestone>
Link copied to clipboard
var offRouteEngine: OffRoute
Link copied to clipboard
val options: MapLibreNavigationOptions
Link copied to clipboard
var route: DirectionsRoute?
Link copied to clipboard
val routeUtils: RouteUtils
Link copied to clipboard
var snapEngine: Snap

Functions

Link copied to clipboard
fun addFasterRouteListener(fasterRouteListener: FasterRouteListener)
Link copied to clipboard
fun addMilestone(milestone: Milestone)
Link copied to clipboard
fun addMilestoneEventListener(milestoneEventListener: MilestoneEventListener)
Link copied to clipboard
fun addMilestones(milestones: List<Milestone>)
Link copied to clipboard
fun addNavigationEventListener(navigationEventListener: NavigationEventListener)
Link copied to clipboard
fun addOffRouteListener(offRouteListener: OffRouteListener)
Link copied to clipboard
fun addProgressChangeListener(progressChangeListener: ProgressChangeListener)
Link copied to clipboard
fun onDestroy()
Link copied to clipboard
fun removeFasterRouteListener(fasterRouteListener: FasterRouteListener?)
Link copied to clipboard
fun removeMilestone(milestoneIdentifier: Int)
fun removeMilestone(milestone: Milestone?)
Link copied to clipboard
fun removeMilestoneEventListener(milestoneEventListener: MilestoneEventListener?)
Link copied to clipboard
fun removeNavigationEventListener(navigationEventListener: NavigationEventListener?)
Link copied to clipboard
fun removeOffRouteListener(offRouteListener: OffRouteListener?)
Link copied to clipboard
fun removeProgressChangeListener(progressChangeListener: ProgressChangeListener?)
Link copied to clipboard
fun startNavigation(directionsRoute: DirectionsRoute)
Link copied to clipboard