App Intent
A Swift type describing one of your app's actions so the system can run it from widgets, Siri, Shortcuts or Spotlight.
Definition
An intent has a title, parameters and a perform method. The same intent can back an interactive widget button, a Siri phrase registered by an AppShortcutsProvider, a Shortcuts action, a Spotlight suggestion or a Control Center control. App entities describe the app's data so intents can take it as parameters.
In practice
MarkCookedIntent runs from the widget's button and from a Shortcut without opening the app.
Learn it in context
Lessons that use this term.