Contents

activateVoiceControlState(withIdentifier:)

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

Declaration

func activateVoiceControlState(withIdentifier identifier: String)

Parameters

  • identifier:

    An identifier corresponding to one of the Voicecontrolstates associated with the template.

Discussion

Your app must present the voice control template using its CPInterfaceController object before the app can activate a new state. Calling this method before presenting the template has no effect on the active state.

See Also

Activating a State