app_intents library

Flutter plugin for iOS App Intents integration.

This plugin enables Flutter apps to integrate with iOS App Intents, allowing them to be controlled via Siri and Shortcuts.

Classes

AppIntents
Main class for interacting with iOS App Intents from Flutter.
AppIntentsEntityCacheKey
Cache keys for the persisted entity list used as the EntityQuery cold-start fallback.
AppIntentsPlatform
The interface that implementations of app_intents must implement.
IntentExecutionRequest
Represents a request to execute an intent from the native platform.
RelevantContextSpec
A context in which a donated intent becomes relevant.
RelevantIntentDonation
One relevant-intent donation: a configured widget intent the system may surface in the Smart Stack when relevance holds.

Enums

AppIntentErrorCode
Error codes for App Intent operations.
FitnessCondition
A state of the user's activity.
InferredLocation
A place the system infers for the user, rather than an explicit region.
RelevantDateKind
How the system should read a date context (iOS 26+).
SleepCondition
A point in the user's sleep schedule.

Functions

intentResultPayload(Object? result) Map<String, dynamic>
Normalizes an intent handler's return value into the map a generated snippet view reads through {result.key} placeholders.

Typedefs

EntityQueryHandler = Future<List<Map<String, dynamic>>> Function(List<String> identifiers)
Type definition for entity query handler functions.
IntentHandler = Future<Map<String, dynamic>> Function(Map<String, dynamic> params)
Type definition for intent handler functions.
SuggestedEntitiesHandler = Future<List<Map<String, dynamic>>> Function()
Type definition for suggested entities handler functions.
ValueQueryHandler = Future<List<Map<String, dynamic>>> Function(Map<String, dynamic> input)
Type definition for value query handler functions (#51).

Exceptions / Errors

AppIntentError
Represents an error that occurred during App Intent operations.