cancelJourney(completion:) | Documentation
cancelJourney(completion:)
Cancel the current journey, stop all journey updates and set currentJourney to nil. If successful, this method will cause a final journey update with a status of cancelled.
@objc
func cancelJourney(completion: ((Error?) -> Void)? = nil)
Parameters in page link
completion
(optional) Completion handler that returns an error if the call fails and nil if it succeeds.