SitumMap
public protocol SitumMap
Protocol implemented by SitumMapsLibrary
-
Provides the GMSMapView instance used inside the Wayfinding view
Declaration
Swift
func getGoogleMap() -> GMSMapView?
Return Value
A GMSMapView instance which is the same being used by the Wayfinding controller
-
Allows setting a closure with a custom exit segue that will be executed when the “Go back” button is pressed. You may also include operations to be done before closing the wayfinding view.
Declaration
Swift
func setOnBackPressedCallback(_ callback: @escaping (_ sender: Any) -> Void)
Parameters
callback
Closure used to perform the exit segue from the wayfinding view
-
Sets an interceptor to read or modify the location request before is actually used to start positioning
Declaration
Swift
func addLocationRequestInterceptor(_ interceptor: @escaping (SITLocationRequest) -> Void)
Parameters
interceptor
Closure that will be executed with the location request as its parameter before starting the positioning
-
Sets an interceptor to read or modify the directions request before is actually used to start guiding
Declaration
Swift
func addDirectionsRequestInterceptor(_ interceptor: @escaping (SITDirectionsRequest) -> Void)
Parameters
interceptor
Closure that will be executed with the directions request as its parameter before starting the guidance
-
Sets an interceptor to read or modify the navigation request before is actually used to obtain a route
Declaration
Swift
func addNavigationRequestInterceptor(_ interceptor: @escaping (SITNavigationRequest) -> Void)
Parameters
interceptor
Closure that will be executed with the navigation request as its parameter before starting the navigation