Contents

mapTemplate(_:shouldUpdateNotificationFor:with:)

Asks the delegate whether the system should display the maneuver with updated travel estimates as a notification when the app is in the background.

Declaration

optional func mapTemplate(_ mapTemplate: CPMapTemplate, shouldUpdateNotificationFor maneuver: CPManeuver, with travelEstimates: CPTravelEstimates) -> Bool

Parameters

  • mapTemplate:

    The current map template.

  • maneuver:

    The current maneuver.

  • travelEstimates:

    The updated travel estimates.

Return Value

true if the system should display the maneuver as a notification; otherwise, false.

See Also

Displaying Notifications