MapKit class abstract

Provides access to all services in the SDK.

Initialize the MapKit factory before using this class.

@attention MapKit holds listener/delegate objects by weak references. You need to have strong references to them somewhere in the client code.

Implemented types

Constructors

MapKit()

Properties

hashCode int
The hash code for this object.
no setterinherited
offlineCacheManager OfflineCacheManager
Returns a manager that handles offline maps, search index and road graph. @attention This feature is not available in the free MapKit version.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storageManager StorageManager
Returns a manager that handles disk size and IO errors.
no setter
version String
Returns the version of the MapKit bundle.
no setter

Methods

createDummyLocationManager() DummyLocationManager
Creates a manager that functions as a location proxy.
createLocationManager() LocationManager
Creates a manager that allows to listen for device location updates.
createLocationSimulator() LocationSimulator
Creates a suspended LocationSimulator object. Geometry must be set manually.
createLocationSimulatorWithGeometry(Polyline geometry) LocationSimulator
Creates a suspended LocationSimulator object with the given geometry.
createRoadEventsManager() RoadEventsManager
Creates a manager that allows to interact with road events.
createRouteRoadEventsLayer(MapWindow mapWindow, RoadEventsLayerStyleProvider styleProvider) RoadEventsLayer
Creates the road events layer that will draw road events on the route.
createTrafficLayer(MapWindow mapWindow) TrafficLayer
Creates the traffic layer.
createUserLocationLayer(MapWindow mapWindow) UserLocationLayer
Create layer with the user location icon.
isValid() bool
Usable only in runWithBlockUi or listener handlers.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onStart() → void
Notifies MapKit when the application resumes the foreground state.
onStop() → void
Notifies MapKit when the application pauses and goes to the background.
resetLocationManagerToDefault() → void
Resets the global location manager to a default one, that is a location manager that is created by MapKit.createLocationManager call.
setLocationManager(LocationManager locationManager) → void
Sets single global location manager that is used by every module in MapKit by default. The provided location manager must have async implementation in it. Any location manager created by MapKit has async implementation. To provide your own source of location please use mapkit_location_dummy_location_manager.DummyLocationManager. Application can change location manager at any moment, all MapKit modules will start receiving new location immediately.
setUserId(String id) → void
Sets the user id. Don't use this method directly. Use MapKitFactory.setUserId instead
toString() String
A string representation of this object.
inherited

Operators

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