Class

CPAlertTemplate

A template for displaying alerts on the CarPlay screen.

Declaration

@interface CPAlertTemplate : CPTemplate

Overview

You must present alerts modally by calling the presentTemplate:animated: method available on your app’s instance of CPInterfaceController. The user dismisses the alert by pressing a button, or you can dismiss it by calling the interface controller’s dismissTemplateAnimated: method.

Topics

Creating an Alert Template

- initWithTitleVariants:actions:

Initializes an alert template.

Getting the Alert Information

titleVariants

The array of title variants.

actions

The array of actions available on the alert.

Relationships

Inherits From

See Also

Action Sheets and Alerts

CPActionSheetTemplate

A template for displaying an action sheet on the CarPlay screen.

CPAlertAction

An action displayed on an alert as a button.