init(image:handler:)
Creates a bar button that displays an image.
Declaration
init(image: UIImage, handler: CPBarButtonHandler? = nil)Parameters
- image:
The image to display on the button.
- handler:
The block that CarPlay invokes when the user taps the button.
Return Value
A bar button that displays the provided image.