Class

CPVoiceControlTemplate

A template that displays a voice control indicator on the CarPlay screen.

Declaration

@interface CPVoiceControlTemplate : CPTemplate

Overview

CarPlay navigation apps must show a voice control indicator during audio input by presenting a voice control template. When creating the template, provide one or more CPVoiceControlState objects. To switch between states, call the activateVoiceControlStateWithIdentifier: method.

Topics

Creating a Voice Control Template

- initWithVoiceControlStates:

Initializes a voice control template with the specified states.

CPVoiceControlState

A voice control state containing title variants and images for use by a voice control template.

Activating a State

- activateVoiceControlStateWithIdentifier:

Changes the template’s state to the one matching the specified identifier.

activeStateIdentifier

The identifier of the template’s current voice control state.

Getting Available States

voiceControlStates

The array of voice control states available to the template.

Relationships

Inherits From