Class

CPMapButton

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

Declaration

class CPMapButton : NSObject

Topics

Creating a Map Button

Providing Button Images

var image: UIImage?

The image to display on the button.

var focusedImage: UIImage?

The image to display when focus is on the button.

Controlling the Button

var isEnabled: Bool

A Boolean value that enables and disables the map button.

var isHidden: Bool

A Boolean value that hides and shows the map button.

Relationships

Inherits From

See Also

Managing Map Buttons

var mapButtons: [CPMapButton]

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