---
title: "init(handler:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cpcontactcallbutton/init(handler:)"
---

# init(handler:)

Creates a button that invokes a handler when the user taps it.

## Declaration

```swift
init(handler: ((CPButton) -> Void)? = nil)
```

## Parameters

- `handler`: The closure that the button invokes when the user taps it.

## Return Value

Return Value A new contact directions button that invokes its handler when the user taps it.

## Discussion

Discussion The button displays a system image that communicates its function.
