CPButton
A button that displays an image and invokes a handler when the user taps it.
Declaration
class CPButtonOverview
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.