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

# searchTemplateSearchButtonPressed(_:)

Tells the delegate that the user tapped the keyboard’s search button.

```
optional func searchTemplateSearchButtonPressed(_ searchTemplate: CPSearchTemplate)
```

## Parameters

`searchTemplate`

The current search template.

## Discussion

Your implementation of this method should retrieve the search result, and display a [`CPListTemplate`](/documentation/CarPlay/CPListTemplate) containing the search result items by calling [`pushTemplate(_:animated:completion:)`](/documentation/CarPlay/CPInterfaceController/pushTemplate(_:animated:completion:)).

---

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)