resetNavigationState

abstract suspend fun resetNavigationState(shouldShowRouteRecoveryPrompt: Boolean = false): Result<Unit>

Resets the navigation state in FreeDrive by clearing all routes and stopping active guidance.

If the navigation was in ActiveGuidance mode before the reset and shouldShowRouteRecoveryPrompt is set to true, a flag will be set to prompt the user to resume the previous route upon reopening the navigation interface.

Return

Result containing Unit on success or an error in case of failure.

Parameters

shouldShowRouteRecoveryPrompt

Indicates whether a prompt should be shown to the user to resume the previous route when reopening the navigation interface. Defaults to false.