cancelNavigation static method

void cancelNavigation(
  1. TaskHandler taskHandler
)

Cancel the active navigation.

This method cancels the active navigation. If a route calculation is in progress then the provided callback will be triggered first with GemError.cancel.

Parameters

  • IN navigationListener Navigation listener used to identify the navigation session.

Throws

  • An exception if it fails.

Implementation

static void cancelNavigation(final TaskHandler taskHandler) {
  taskHandler as TaskHandlerImpl;

  staticMethod('NavigationService', 'stopNavigation', args: taskHandler.id);
}