MapViewController

Controller for MapView. This class provides methods to interact with the map and handle events triggered by it.

Functions

Link copied to clipboard
abstract fun internalOnMessageSent(internalOnMessageSentCallback: InternalOnMessageSentCallback)

For internal use only.

Link copied to clipboard
abstract fun navigateTo(filter: NavigationFilter, accessibilityMode: DirectionsRequest.AccessibilityMode? = null)

Starts navigation to a destination that meets the restrictions defined in the given filter. The user location must be available.

Link copied to clipboard
abstract fun navigateToPoi(identifier: String)

Starts navigating to the given POI.

abstract fun navigateToPoi(identifier: String, accessibilityMode: DirectionsRequest.AccessibilityMode? = null)

Starts navigating to the given POI. You can optionally choose the desired AccessibilityMode used to calculate the route.

Link copied to clipboard
abstract fun navigateToPoint(navigationPoint: NavigationPoint)

Starts navigating to the given coordinates, at the given floor.

abstract fun navigateToPoint(navigationPoint: NavigationPoint, accessibilityMode: DirectionsRequest.AccessibilityMode)

Starts navigating to the given coordinates, at the given floor. You can optionally choose the desired AccessibilityMode used to calculate the route. You can also set the name of the destination to be displayed on the MapView.

Link copied to clipboard
abstract fun onExternalLinkClicked(onExternalLinkClickedCallback: OnExternalLinkClickedCallback)

Callback invoked when the user clicks on a link in the MapView that leads to a website different from the MapView's domain. If this callback is not set, the link will be opened in the system's default browser by default.

Link copied to clipboard
abstract fun onPoiDeselected(onPoiDeselectedCallback: OnPoiDeselectedCallback)

Get notified when the selected POI is deselected.

Link copied to clipboard
abstract fun onPoiSelected(onPoiSelectedCallback: OnPoiSelectedCallback)

Get notified when a POI is selected.

Link copied to clipboard
abstract fun search(searchFilter: SearchFilter)

Performs a search with the given SearchFilter.

Link copied to clipboard
abstract fun selectPoi(identifier: String)

Selects the given POI in the map.

Link copied to clipboard
abstract fun setCurrentLocation(location: Location)
Link copied to clipboard
abstract fun setDirectionsOptions(directionsOptions: MapViewDirectionsOptions)

When this is called all the subsequent routes calculated by the MapView will use this options.

Link copied to clipboard
abstract fun setLanguage(lang: String)

Sets the UI language based on the given ISO 639-1 code. Checkout the Situm docs to see the list of supported languages.