<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPNowPlayingTemplate/add(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPNowPlayingTemplate(im)addObserver:"
  },
  "title" : "add(_:)"
}
-->

# add(_:)

Registers an observer that receives Now Playing template events.

```
func add(_ observer: any CPNowPlayingTemplateObserver)
```

## Parameters

`observer`

An object that implements the [`CPNowPlayingTemplateObserver`](/documentation/CarPlay/CPNowPlayingTemplateObserver) protocol.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)