Instance Method

dismissNavigationAlert(animated:completion:)

Tells the map template to dismiss the visable navigation alert.

Declaration

func dismissNavigationAlert(animated: Bool, completion: @escaping (Bool) -> Void)

Parameters

animated

Determines whether the system should animate the dismissal of the navigation alert. Set to true to animate the dismissal.

completion

The block invoked after dismissing the navigation alert. The Bool argument in the block indicates whether the template dismissed an alert.

See Also

Displaying a Navigation Alert

func present(navigationAlert: CPNavigationAlert, animated: Bool)

Displays a navigation alert on the map template.

class CPNavigationAlert

An alert that displays map- or navigation-related information to the user.