---
title: "searchTemplateSearchButtonPressed(_:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpsearchtemplatedelegate/searchtemplatesearchbuttonpressed(_:)"
---

# searchTemplateSearchButtonPressed(_:)

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

## Declaration

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

## Parameters

- `searchTemplate`: The current search template.

## Discussion

Discussion Your implementation of this method should retrieve the search result, and display a CPListTemplate containing the search result items by calling pushTemplate(_:animated:completion:).
