---
title: "mapTemplate(_:shouldShowNotificationFor:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpmaptemplatedelegate/maptemplate(_:shouldshownotificationfor:)-4mnm1"
---

# mapTemplate(_:shouldShowNotificationFor:)

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

## Declaration

```swift
optional func mapTemplate(_ mapTemplate: CPMapTemplate, shouldShowNotificationFor maneuver: CPManeuver) -> Bool
```

## Parameters

- `mapTemplate`: The current map template.
- `maneuver`: The current maneuver.

## Return Value

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

## See Also

### Displaying Notifications

- [mapTemplate(_:shouldUpdateNotificationFor:with:)](carplay/cpmaptemplatedelegate/maptemplate(_:shouldupdatenotificationfor:with:).md)
- [mapTemplate(_:shouldShowNotificationFor:)](carplay/cpmaptemplatedelegate/maptemplate(_:shouldshownotificationfor:)-5lu8a.md)
