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

# CPInterfaceControllerDelegate

The interface that an object implements to serve as a delegate to an interface controller.

```
@MainActor protocol CPInterfaceControllerDelegate : NSObjectProtocol
```

## Topics

### Handling Display Events

[`-  templateWillAppear:animated:`](/documentation/CarPlay/CPInterfaceControllerDelegate/templateWillAppear(_:animated:))

Tells the delegate that the template will appear onscreen.

[`-  templateDidAppear:animated:`](/documentation/CarPlay/CPInterfaceControllerDelegate/templateDidAppear(_:animated:))

Tells the delegate that the template did appear onscreen.

[`-  templateWillDisappear:animated:`](/documentation/CarPlay/CPInterfaceControllerDelegate/templateWillDisappear(_:animated:))

Tells the delegate that the template will disappear from the screen.

[`-  templateDidDisappear:animated:`](/documentation/CarPlay/CPInterfaceControllerDelegate/templateDidDisappear(_:animated:))

Tells the delegate that the template did disappear from the screen.

## 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)