RoutePrefetcher class abstract

Supports downloading of map data - in advance - into the cache to optimize temporary offline use cases that rely on cached map data.

This allows scenarios such as navigation to work in a specific area reliably even though the network might be offline at that time. Please note, this class puts data in the map cache, which has its own size constraints, and extensive usage may start evicting old cached data. Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

Constructors

RoutePrefetcher(SDKNativeEngine sdkEngine)
Creates a RoutePrefetcher instance for a given SDKNativeEngine.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
prefetchCorridorLengthMeters ↔ int
The length of the corridor along the route in front of the car which will be used to prefetch data. Upper limit for length is 50000 meters, when the requested length is greater than upper limit, then 50000 meters set. Lower limit for length is 1000 meters, when the requested length is less than lower limit, then 1000 meters set. The route corridor has a default length of 10 km and a width of 5 km. Gets the length of the corridor along the route in front of the car which will be used to prefetch data.
getter/setter pair
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
prefetchAroundLocationWithRadius(GeoCoordinates currentLocation, double? radiusInMeters) → void
Prefetches map data within a user-defined circular area around a given location.
prefetchAroundRouteOnIntervals(NavigatorInterface navigator) → void
Prefetches map data within a corridor along the route, that is currently set for the provided NavigatorInterface instance.
prefetchGeoCorridor(GeoCorridor corridor, PrefetchStatusListener callback) TaskHandle
Prefetch tiles for a given geo-corridor.
stopPrefetchAroundRoute() → void
Stops listening NavigatorInterface passed to RoutePrefetcher.prefetchAroundRouteOnIntervals for route progress events and stops prefetching data along the current route.
toString() → String
A string representation of this object.
inherited

Operators

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