Class

CPMapButton

A button representing an action that a map template displays on the CarPlay screen.

Declaration

@interface CPMapButton : NSObject

Topics

Creating a Map Button

- initWithHandler:

Initializes a new map button.

Providing Button Images

image

The image to display on the button.

focusedImage

The image to display when focus is on the button.

Controlling the Button

enabled

A Boolean value that enables and disables the map button.

hidden

A Boolean value that hides and shows the map button.

Relationships

Inherits From

Conforms To

See Also

Managing Map Buttons

mapButtons

An array of map buttons displayed on the trailing bottom corner of the map template.