<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPNowPlayingTemplateObserver",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(pl)CPNowPlayingTemplateObserver"
  },
  "title" : "CPNowPlayingTemplateObserver"
}
-->

# CPNowPlayingTemplateObserver

The methods for responding to the user interacting with the Now Playing template.

```
protocol CPNowPlayingTemplateObserver : NSObjectProtocol
```

## Overview

You use a Now Playing template observer to respond when the user interacts with the Album-Artist and Up Next buttons. The protocol defines methods that CarPlay calls when a user taps these buttons. Use your implementation to provide the appropriate behavior when these events occur. For example, when the user taps the Album-Artist button, you can present a new template that displays the content of the current album, playlist, or podcast.

To register an observer, create an object that implements the `CPNowPlayingTemplateObserver` protocol and then call the Now Playing template’s [`add(_:)`](/documentation/CarPlay/CPNowPlayingTemplate/add(_:)) method, passing your object as the only parameter.

## Topics

### Responding to User Interactions

[`func nowPlayingTemplateAlbumArtistButtonTapped(CPNowPlayingTemplate)`](/documentation/CarPlay/CPNowPlayingTemplateObserver/nowPlayingTemplateAlbumArtistButtonTapped(_:))

Tells the observer that the user tapped the Album-Artist button.

[`func nowPlayingTemplateUpNextButtonTapped(CPNowPlayingTemplate)`](/documentation/CarPlay/CPNowPlayingTemplateObserver/nowPlayingTemplateUpNextButtonTapped(_:))

Tells the observer that the user tapped the Up Next button.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)