<!--
{
  "availability" : [
    "iOS: 12.0.0 - 13.0.0",
    "iPadOS: 12.0.0 - 13.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPApplicationDelegate/application(_:didConnectCarInterfaceController:to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(pl)CPApplicationDelegate(im)application:didConnectCarInterfaceController:toWindow:"
  },
  "title" : "application(_:didConnectCarInterfaceController:to:)"
}
-->

# application(_:didConnectCarInterfaceController:to:)

Tells the app delegate that the app connected to the CarPlay interface.

```
func application(_ application: UIApplication, didConnectCarInterfaceController interfaceController: CPInterfaceController, to window: CPWindow)
```

## Parameters

`application`

Your singleton app object.

`interfaceController`

The interface controller provided by CarPlay. Your app should maintain a reference to this controller.

`window`

The CarPlay window. Your app should create its view controller and assign the controller to the <doc://com.apple.documentation/documentation/UIKit/UIWindow/rootViewController> property of this window.

---

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)