Interface INUIAddVoiceShortcutViewControllerDelegate


  • public interface INUIAddVoiceShortcutViewControllerDelegate
    API-Since: 12.0
    • Method Detail

      • addVoiceShortcutViewControllerDidFinishWithVoiceShortcutError

        void addVoiceShortcutViewControllerDidFinishWithVoiceShortcutError​(@NotNull
                                                                           @NotNull INUIAddVoiceShortcutViewController controller,
                                                                           @Nullable
                                                                           @Nullable INVoiceShortcut voiceShortcut,
                                                                           @Nullable
                                                                           @Nullable NSError error)
        Called after the user finishes the setup flow for the voice shortcut, with either the successfully-added voice shortcut, or an error. Your implementation of this method should dismiss the view controller.
      • addVoiceShortcutViewControllerDidCancel

        void addVoiceShortcutViewControllerDidCancel​(@NotNull
                                                     @NotNull INUIAddVoiceShortcutViewController controller)
        Called if the user cancels the setup flow; the voice shortcut was not added. Your implementation of this method should dismiss the view controller.