Contents

CPButton

A button that displays an image and invokes a handler when the user taps it.

Declaration

class CPButton

Overview

You create instances of CPButton to provide a template’s actions. The button displays a custom image that communicates its function. When a user taps the button, CarPlay invokes the handler you provide. The template that contains the button manages its appearance.

The framework provides specialized subclasses for common actions, such as CPContactCallButton or CPContactMessageButton.

Topics

Creating a Button

Getting the Button’s Image

Configuring the Button’s Attributes

See Also

Related Types