GoogleMapsNavigator class Navigation

GoogleMapsNavigator handles general actions of the navigation SDK and allows creating navigation session controller.

Constructors

GoogleMapsNavigator()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

simulator → Simulator
Simulator manager handling simulator actions.
no setter

Static Methods

allowBackgroundLocationUpdates(bool allow) Future<void>
Sets state of allow background location updates. (iOS only)
areTermsAccepted() Future<bool>
Checks if terms and conditions have already been accepted by the user.
cleanup({bool resetSession = true}) Future<void>
Cleans up the navigation session.
clearDestinations() Future<void>
Clears existing destinations.
continueToNextDestination() Future<NavigationWaypoint?>
Continues to the next waypoint.
disableTurnByTurnNavigationEvents() Future<void>
enableTurnByTurnNavigationEvents(int? numNextStepsToPreview) Future<void>
getCurrentRouteSegment() Future<RouteSegment?>
Get current route segment.
getCurrentTimeAndDistance() Future<NavigationTimeAndDistance>
Returns how much current time and distance are left.
getNavSDKVersion() Future<String>
Gets the native navigation SDK version as string.
getRouteSegments() Future<List<RouteSegment>>
Get route segments.
getTraveledRoute() Future<List<LatLng>>
Get traveled route.
initializeNavigationSession({bool abnormalTerminationReportingEnabled = true, TaskRemovedBehavior taskRemovedBehavior = TaskRemovedBehavior.continueService}) Future<void>
Initializes the navigation session.
isGuidanceRunning() Future<bool>
Check if guidance is running.
isInitialized() Future<bool>
Check whether navigator has been initialized.
resetTermsAccepted() Future<void>
Resets the terms of service acceptance state.
setAudioGuidance(NavigationAudioGuidanceSettings settings) Future<void>
Sets the audio guidance settings.
setDestinations(Destinations destinations) Future<NavigationRouteStatus>
Sets one or multiple destinations for navigation.
setNavInfoListener(OnNavInfoEventCallback listener, {int? numNextStepsToPreview}) StreamSubscription<NavInfoEvent>
Sets the event channel listener for NavInfoEvents.
setOnArrivalListener(OnArrivalEventCallback listener) StreamSubscription<OnArrivalEvent>
Sets the event channel listener for the OnArrivalEvents.
setOnGpsAvailabilityChangeListener(OnGpsAvailabilityChangeEventCallback listener) Future<StreamSubscription<GpsAvailabilityChangeEvent>>
Sets the event channel listener for the GPS availability change events. (Android only).
setOnGpsAvailabilityListener(OnGpsAvailabilityEventCallback listener) Future<StreamSubscription<GpsAvailabilityUpdatedEvent>>
Sets the event channel listener for the GPS availability events. (Android only).
setOnNewNavigationSessionListener(OnNewNavigationSessionCallback listener) StreamSubscription<void>
Sets the event channel listener for new navigation session events.
setOnRemainingTimeOrDistanceChangedListener(OnRemainingTimeOrDistanceChangedEventCallback listener, {int remainingTimeThresholdSeconds = 1, int remainingDistanceThresholdMeters = 1}) StreamSubscription<RemainingTimeOrDistanceChangedEvent>
Sets the event channel listener for RemainingTimeOrDistanceChangedEvents.
setOnReroutingListener(OnReroutingEventCallback listener) StreamSubscription<void>
Sets the event channel listener for the rerouting events. (Android only)
setOnRouteChangedListener(OnRouteChangedEventCallback listener) StreamSubscription<void>
Sets the event channel listener for the on route changed events.
setRoadSnappedLocationUpdatedListener(OnRoadSnappedLocationUpdatedEventCallback listener) Future<StreamSubscription<RoadSnappedLocationUpdatedEvent>>
Sets the event channel listener for RoadSnappedLocationUpdatedEvents.
setRoadSnappedRawLocationUpdatedListener(OnRoadSnappedRawLocationUpdatedEventCallback listener) Future<StreamSubscription<RoadSnappedRawLocationUpdatedEvent>>
Sets the event channel listener for RoadSnappedRawLocationUpdatedEvents (Android only).
setSpeedingUpdatedListener(OnSpeedingUpdatedEventCallback listener) StreamSubscription<SpeedingUpdatedEvent>
Sets the event channel listener for the SpeedingUpdatedEvents.
setTrafficUpdatedListener(OnTrafficUpdatedEventCallback listener) StreamSubscription<void>
Sets the event channel listener for the traffic updated events. (Android only)
showTermsAndConditionsDialog(String title, String companyName, {bool shouldOnlyShowDriverAwarenessDisclaimer = false}) Future<bool>
Shows terms and conditions dialog.
startGuidance() Future<void>
Starts the navigation guidance.
stopGuidance() Future<void>
Stops the navigation guidance.