startSession

fun startSession(appContext: Context? = null, notificationContent: ForegroundNotificationContent? = null, route: Route? = currentRoute, instructionsIconsStyles: InstructionsIconsStyles? = null): Error?

Starts a navigation session with the passed route

Parameters

appContext

the application context. If null, foreground notification can't be used.

notificationContent

the content for the foreground notification service that will allows to have locations updates for the navigation while the application is in background. If null, no foreground notification service will be used, and therefore the navigation engine won't have location updates while the application is in background.

route

the Route that will be used for the session in SessionState.GUIDANCE mode. By default, currentRoute will be used if no argument is specified.

instructionsIconsStyles

the defined styles for instructions icons (symbolic maneuvers and signposts) that you will receive during a guidance in InstructionsListener.onNewInstruction If styles are not defined, you won't receive associated maneuvers/signposts icons in InstructionsListener.onNewInstruction