Contents

init(title:handler:)

Creates a bar button that displays a text label.

Declaration

init(title: String, handler: CPBarButtonHandler? = nil)

Parameters

  • title:

    The text 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 text.

See Also

Creating a CarPlay Bar Button