An action displayed on an alert as a button.
SDK
- iOS 12.0+
Framework
- Car
Play
An action displayed on an alert as a button.
SDK
Framework
init(title: String, style: CPAlert Action .Style, handler: CPAlert Action Handler)
Creates an alert action with a title, style, and action handler.
var title: String
The action button's title.
var style: CPAlert Action .Style
The display style for the action button.
enum CPAlert Action .Style
Display styles for an alert’s action button.
var handler: CPAlert Action Handler
The block invoked after the user taps the action button.
typealias CPAlert Action Handler
The declaration for an alert action handler.
class CPAction Sheet Template
A template for displaying an action sheet on the CarPlay screen.
class CPAlert Template
A template for displaying alerts on the CarPlay screen.