PredictiveCacheController
Constructs a new instance of the PredictiveCacheController using the provided PredictiveCacheOptions. Throws IllegalStateException if MapboxNavigation was not instantiated before. Use PredictiveCacheController constructor which explicitly accepts MapboxNavigation instance.
Parameters
PredictiveCacheOptions options to instantiate instance of PredictiveCacheController
Throws
if MapboxNavigation was not instantiated before
Constructs a new instance of the PredictiveCacheController using the provided MapboxNavigation and PredictiveCacheOptions.
Note: The lifecycle of the MapboxNavigation instance should be longer than that of the PredictiveCacheController. Specifically, MapboxNavigation should not be destroyed before PredictiveCacheController.onDestroy is called.
Parameters
MapboxNavigation object which will be used as a source of active route
PredictiveCacheOptions options to instantiate instance of PredictiveCacheController
Constructs a new instance of the PredictiveCacheController using the provided options. Throws IllegalStateException if MapboxNavigation was not instantiated before. Use PredictiveCacheController constructor which explicitly accepts MapboxNavigation instance and predictiveCacheControllerErrorHandler instead.
Parameters
PredictiveCacheLocationOptions location configuration for visual map predictive caching (optional)
PredictiveCacheControllerErrorHandler listener (optional) Noting that predictiveCacheLocationOptions
is used as predictiveCacheGuidanceLocationOptions
when constructing PredictiveCacheController
to retain backwards compatibility
Throws
if MapboxNavigation was not instantiated before
Constructs a new instance of the PredictiveCacheController using the provided options. Throws IllegalStateException if MapboxNavigation was not instantiated before. Use PredictiveCacheController constructor which explicitly accepts MapboxNavigation instance and predictiveCacheControllerErrorHandler instead.
Parameters
PredictiveCacheLocationOptions location configuration for visual map predictive caching (optional)
PredictiveCacheLocationOptions location configuration for guidance predictive caching (optional)
PredictiveCacheControllerErrorHandler listener (optional)
Throws
if MapboxNavigation was not instantiated before