create
fun create(onNavigationStarted: () -> Unit? = null, onNavigationInstructionUpdated: (NavigationInstruction) -> Unit? = null, onWaypointReached: (Landmark) -> Unit? = null, onDestinationReached: (Landmark) -> Unit? = null, onNavigationError: (ErrorCode) -> Unit? = null, onRouteUpdated: (Route) -> Unit? = null, onNavigationSound: (ISound) -> Unit? = null, canPlayNavigationSound: Boolean = false, onNotifyStatusChange: (ENavigationStatus) -> Unit? = null, onBetterRouteDetected: (Route, Int, Int, Int) -> Unit? = null, onBetterRouteRejected: (ErrorCode) -> Unit? = null, onBetterRouteInvalidated: () -> Unit? = null, postOnMain: Boolean = true): NavigationListener
Creates a implementation of NavigationListener based on provided lambdas.
Parameters
on Navigation Started
on Navigation Instruction Updated
on Waypoint Reached
on Destination Reached
on Navigation Error
on Route Updated
on Navigation Sound
can Play Navigation Sound
on Notify Status Change
on Better Route Detected
on Better Route Rejected
on Better Route Invalidated
post On Main
if true then all triggers will be called on main thread.