TechnologiesApp Extensions & System Integration

IntentsUI

iOSmacOStvOSwatchOSvisionOS

IntentsUI provides UIKit views and controllers for adding and editing Siri voice shortcuts and for hosting the custom UI of an Intents extension. Add an INUIAddVoiceShortcutButton to let people create a shortcut, configuring its appearance with INUIAddVoiceShortcutButtonStyle and responding through INUIAddVoiceShortcutButtonDelegate. Present INUIAddVoiceShortcutViewController and INUIEditVoiceShortcutViewController to create or modify shortcuts, handling the results through their delegate protocols. When hosting an Intents extension's interface, use INUIHostedViewContext and INUIInteractiveBehavior to describe the context in which your view appears and how it behaves.

Voice Shortcut Button 3

A button and its delegate for letting people add a voice shortcut to Siri.

  • Cl
    INUIAddVoiceShortcutButtoniOS 12.0+
    A button that lets people add a shortcut to Siri so they can run it with a custom phrase.
  • Pr
    INUIAddVoiceShortcutButtonDelegateiOS 12.0+
    A protocol for presenting and dismissing the view controllers shown by an add-voice-shortcut button.
  • En
    INUIAddVoiceShortcutButtonStyleiOS 12.0+
    Constants that specify the visual appearance of an add-voice-shortcut button.

Adding and Editing Shortcuts 4

View controllers and delegates for creating and modifying Siri voice shortcuts.

  • Cl
    INUIAddVoiceShortcutViewControlleriOS 12.0+
    @abstract A view controller that will take the user through the setup flow to add a shortcut to Siri.
  • Cl
    INUIEditVoiceShortcutViewControlleriOS 12.0+
    @abstract A view controller that shows the details of a voice shortcut, and lets the user edit the phrase.
  • Pr
    INUIAddVoiceShortcutViewControllerDelegateiOS 12.0+
    A protocol for responding to the outcome of adding a voice shortcut.
  • Pr
    INUIEditVoiceShortcutViewControllerDelegateiOS 12.0+
    A protocol for responding to the editing, updating, or deletion of a voice shortcut.

Hosting Intents Extension UI 2

Types that describe the context in which a hosted Intents extension view appears and how it behaves.

  • En
    INUIHostedViewContextiOS 10.0+
    Constants that identify the context in which a hosted Intents extension view is displayed.
  • En
    INUIInteractiveBehavioriOS 11.0+
    Constants that describe how a hosted Intents extension view responds to user interaction.

Protocols 2

  • Pr
    INUIHostedViewControllingiOS 10.0+
  • Pr
    INUIHostedViewSiriProvidingiOS 10.0+

Extends 2

INImageNSExtensionContext
← App Extensions & System Integration