addVoiceShortcutViewController(_:didFinishWith:error:)
Tells the delegate the view controller added the shortcut to Siri.
Declaration
func addVoiceShortcutViewController(_ controller: INUIAddVoiceShortcutViewController, didFinishWith voiceShortcut: INVoiceShortcut?, error: (any Error)?)Parameters
- controller:
The view controller calling this method.
- voiceShortcut:
The shortcut added to Siri. This parameter is
nilwhen the controller isn’t able to add the shortcut to Siri. - error:
A error object if an error occurred adding the shortcut; otherwise,
nil.