apple_intelligence library
Apple Intelligence from Flutter, beyond the language model.
Classes
- AppleIntelligenceTextField
- A real system text view, hosted in Flutter, so Apple's text features work.
- GeneratedImage
- One image, as it arrives.
- ImageConcept
- What to draw.
- ImageCreator
- Generates images on device, with no UI at all.
- ImageGenerationAvailability
- What this device can actually do, asked as separate questions because the answers differ.
- ImagePlaygroundSheet
- Apple's own image generation UI, presented over your app.
- NativeTextController
- Reads and writes the text of an AppleIntelligenceTextField.
- TextCapabilities
- What the system actually granted this text view.
Enums
- GenerationRefusal
- The specific reason a request was refused.
- ImageGenerationStatus
- Why image generation is or is not usable right now.
- ImageStyle
- The visual register of a generated image.
Functions
-
exceptionFor(
String code, String message) → AppleIntelligenceException - Maps a platform error code onto the matching exception.
Exceptions / Errors
- AppleIntelligenceException
- Base class for everything this package throws.
- GenerationFailedException
- Generation started but did not finish.
- GenerationRefusedException
- The request itself was refused — the prompt, the language, or the source image was something the system will not draw.
- Apple Intelligence is off, unsupported on this device, or not yet ready.
- OsTooOldException
- The system predates the API, or the app was built without the SDK.