Contents

editVoiceShortcutViewController(_:didUpdate:error:)

Tells the delegate the user updated the shortcut.

Declaration

func editVoiceShortcutViewController(_ controller: INUIEditVoiceShortcutViewController, didUpdate voiceShortcut: INVoiceShortcut?, error: (any Error)?)

Parameters

  • controller:

    The view controller calling this method.

  • voiceShortcut:

    The updated shortcut; otherwise, nil when an error occurred updating the shortcut.

  • error:

    A error object when an error occurred updating the shortcut; otherwise, nil.

Discussion

The system calls this method after the user re-records the invocation phrase for the shortcut. If your app displays the phrase, the app should update its screen to show the new phrase by retrieving the phrase text from the invocationPhrase property on voiceShortcut.

See Also

Handling Shortcut Changes