---
title: "mapTemplate(_:shouldUpdateNotificationFor:with:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpmaptemplatedelegate/maptemplate(_:shouldupdatenotificationfor:with:)"
---

# 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

```swift
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

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

## See Also

### Displaying Notifications

- [mapTemplate(_:shouldShowNotificationFor:)](carplay/cpmaptemplatedelegate/maptemplate(_:shouldshownotificationfor:)-4mnm1.md)
- [mapTemplate(_:shouldShowNotificationFor:)](carplay/cpmaptemplatedelegate/maptemplate(_:shouldshownotificationfor:)-5lu8a.md)
