app_intents_annotations 0.18.0
app_intents_annotations: ^0.18.0 copied to clipboard
Annotations for defining iOS App Intents in Flutter. Use with app_intents and app_intents_codegen.
0.18.0 #
@EntitySpec(suggestedLimit:)caps how many entitiessuggestedEntities()returns, whileallEntities(),entities(for:)and re-indexing keep the full set (#151). Each suggested entity becomes its own App Shortcut when a phrase references the entity, so keep this small (the HIG suggests no more than ten). The list order is the priority.
0.17.0 #
EntityExportType.place,EntityExportRoleand@EntityExportField— export an entity as aPlaceDescriptor(#128).@EntitySpec(importable:)— accept the exported system type back from other apps (#129).@IntentParam(requestValue:)— let a handler prompt for an optional parameter while running (#131).@EntityStableId— the stable half of a syncable entity's identifier, for entities whose@EntityIdis local (#132).@UnionValueSpec(valueQuery:)— anIntentValueQueryreturning a union (#133).
All additive and optional; existing specs are unaffected.
0.16.0 #
@WidgetConfigurationSpec(relevantIntents:)— opt a widget configuration intoRelevantIntentdonation (#55, ADR 0009).SnippetTemplate/SnippetRowand@IntentSpec(snippet:), describing the card Siri shows next to a result (ADR 0007).@IntentSpecgainsresultDialogSupportingTemplateandresultDialogSystemImageName, forIntentDialog(full:supporting:)result dialogs (ADR 0006). Both are additive and optional; existing specs are unaffected.
0.15.0 #
- No user-facing changes; released in lockstep with
app_intents0.15.0.
0.14.0 #
- No user-facing changes; released in lockstep with
app_intents0.14.0 (#102).
0.13.0 #
@WidgetConfigurationSpec/@WidgetParameter+WidgetConfigurationSpecBase— declare a WidgetKitWidgetConfigurationIntentin Dart so a widget's configuration UI can offer entity pickers (#98). The widget itself is native SwiftUI; these annotations only describe the configuration surface thatapp_intents_codegenlowers to Swift.
0.12.0 #
@IntentSpec(donatable: true)— opt-in forAppIntent.donate()so Siri / Apple Intelligence learns the user performed the action in-app (#55). Inert unless thedonationexperimental feature is enabled inapp_intents_codegen. MVP restricts to primitive parameter types (String/int/double/bool/DateTime, optionals allowed); entity / file / enum / union / collection params are rejected at codegen time.@IntentParam(useValueState: true)— opt-in forIntentParameter.ValueState(@available(iOS 18.2, *)stable — no#ifgating required). Distinguishesunset/set/clearedfor an optional update parameter so the Dart handler can tell "don't touch" from "explicitly cleared." Only valid on a nullable Dart type; analyzer rejects use on non-optional params.AppSchemas.system.searchInApp— typed accessor for the iOS 27 system search-in-app schema (iOS 17 used.system.search; iOS 27 renamed it). The iOS-17 identifier remains reachable viaAppSchemas.of(AppSchemaDomain.system, 'search'). Also addsAppSchemas.system.open.
0.11.0 #
- WWDC26 App Intents annotation surfaces (opt-in; inert unless experimental code generation is enabled in
app_intents_codegen):- Intent execution control (#52):
@IntentSpec(longRunning:, cancellable:, executionTargets:)+ theIntentExecutionTargetenum. - App Schema (#49):
schema:on@EntitySpec/@IntentSpec/@EnumSpec, plus theAppSchemascatalog (messages/mail/photos). - Semantic indexing (#50):
@EntityProperty(title:, indexingKey:). - Entity ownership (#55):
@EntitySpec(ownership:)+EntityOwnershipState. - Rich parameter types (#53):
Durationparameters, the newPersonNamevalue type,@IntentParam(entityCollectionType:), and@UnionValueSpec/@UnionCase(which codegen lowers to a native@UnionValueenum). - Cross-app export (#54):
@EntitySpec(exportAs:)+EntityExportType. - IntentValueQuery (#51) and donations/discovery (#55):
@EntitySpec(valueQuery:, syncable:, relevantEntities:).
- Intent execution control (#52):
- Docs: documentation consistency fixes across the repository guides.
0.10.1 #
- No annotation changes; version bump aligns with
app_intents0.10.1 (AndroidcompilerOptionsDSL fix for Kotlin 2.3+ / AGP 9.1.0+, #20)
0.10.0 #
- No annotation changes; version bump aligns with
app_intents0.10.0 (Swift Package Manager support for the iOS plugin, #29)
0.9.0 #
- Add
@EntitySpec.persistedCacheKeyfor EntityQuery cold-start fallback (#26)
0.8.0 #
- No API changes; version bump to align with the AppFunctions alpha09 upgrade in
app_intents_codegen(#23)
0.7.8 #
- No API changes; version bump to align with plugin fix release (Android cache no-op handlers)
0.7.7 #
- No API changes; version bump to align with plugin fix release
0.7.6 #
- No API changes; version bump to align with plugin bug fix release (App Group storage fix)
0.7.5 #
- No API changes; version bump to align with codegen bug fix release
0.7.4 #
- No API changes; version bump to align with codegen bug fix release
0.7.3 #
- No API changes; version bump to align with codegen bug fix release
0.7.2 #
- No API changes; version bump to align with codegen bug fix release
0.7.1 #
- No API changes; version bump to align with codegen bug fix release
0.7.0 #
- No API changes; version bump to align with codegen package (xcstrings generation feature)
0.6.2 #
- No API changes; version bump to align with codegen/plugin packages
0.6.1 #
- Documentation fixes: correct outdated code examples and API references
0.6.0 #
- BREAKING: Remove generic type parameters from
IntentSpecBase- Before:
class MyIntent extends IntentSpecBase<Input, Output> - After:
class MyIntent extends IntentSpecBase - Input/Output types were unused by the framework and can be removed safely
- Before:
0.5.2 #
- No API changes; version bump to align with other packages
0.5.1 #
- No API changes; version bump to align with codegen package
0.5.0 #
- Add
imageNamefield to@EnumCaseDisplayfor AppEnum case icon support - Add
displayImageNamefield to@EntitySpecfor entity type-level display image - Add
indexedfield to@EntitySpecforIndexedEntitySpotlight integration (iOS 26+) - Add
enumerablefield to@EntitySpecforEnumerableEntityQuerysupport
0.4.0 #
- Add
IntentModeenum for intent execution mode control (foreground/background) - Add
supportedModesfield to@IntentSpecfor iOS 26+IntentModessupport - Add
IntentFilemodel class for file/image parameter handling - Add
fileTypefield to@IntentParamfor UTType-based file parameters
0.3.0 #
- Add Android AppFunctions support (annotations shared across iOS and Android)
- Update documentation for cross-platform (iOS App Intents + Android AppFunctions)
0.2.1 #
- Documentation updates to reflect v0.2.0 features
- No API changes
0.2.0 #
- BREAKING: Raise iOS minimum to 17.0
- Add
resultDialogTemplateto@IntentSpecfor Siri/Shortcuts dialog feedback - Add
parameterSummaryto@IntentSpecfor Shortcuts UI parameter display - Add
enumTypeto@IntentParamfor AppEnum parameter support - Add
@EnumSpecand@EnumCaseDisplayannotations for AppEnum definitions - Update
@AppShortcutphrase docs: all phrases require{applicationName}
0.1.0 #
- Initial release
@IntentSpecand@IntentParamannotations for intent definitions@EntitySpec,@EntityId,@EntityTitle,@EntitySubtitle,@EntityImageannotations for entity definitions@AppShortcutand@AppShortcutsProviderannotations for Spotlight shortcutsIntentSpecBaseandEntitySpecBasebase classes