SpreadsheetSheet class
Adopts Apple's spreadsheet.sheet schema ("Sheet", iOS 18+, macOS 15+).
Map fields with SpreadsheetSheetField and turn on the schema intents the app supports. Each one becomes a method on the generated handler.
dialogs and confirm give, by intent name, what Siri says when one
finishes and what it asks first (deletes ask by default; see confirmDeletes).
replies lets live intents' handlers return an AssistantReply, and
cardButtons lets their cards have buttons below iOS / macOS 26 targets.
summaries gives, by intent name, the sentence Shortcuts shows it as.
requiresUnlock keeps Siri from running its intents on a locked device;
systemImage is an SF Symbol shown with every item (an @EntityImage()
field gives each item its own).
- Inheritance
-
- Object
- SchemaEntity
- SpreadsheetSheet
Constructors
-
SpreadsheetSheet({required FixedSpreadsheetDocument spreadsheet, bool createSheet = false, bool openSheet = false, bool updateSheet = false, bool addImageToSheet = false, bool addVideoToSheet = false, bool addAudioToSheet = false, bool addTextBoxToSheet = false, bool addCommentToSheet = false, bool addWebVideoToSheet = false, bool deleteSheet = false, Map<
String, String> dialogs = const {}, Map<String, String> confirm = const {}, bool confirmDeletes = true, Set<String> replies = const {}, Set<String> cardButtons = const {}, Map<String, String> summaries = const {}, String? url, Unlock? requiresUnlock, String? systemImage, bool visualSearch = false}) -
const
Properties
- addAudioToSheet → bool
-
Handle
spreadsheet.addAudioToSheet("Add Audio to Sheet"): callsFuture<void> addAudioToSheet({required AssistantFile audio, required String target})when the app next runs (queued, likeRuns.deferred).final - addCommentToSheet → bool
-
Handle
spreadsheet.addCommentToSheet("Add Comment to Sheet"): callsFuture<void> addCommentToSheet({String? comment, required String target})when the app next runs (queued, likeRuns.deferred).final - addImageToSheet → bool
-
Handle
spreadsheet.addImageToSheet("Add Image to Sheet"): callsFuture<void> addImageToSheet({required AssistantFile image, required String target})when the app next runs (queued, likeRuns.deferred).final - addTextBoxToSheet → bool
-
Handle
spreadsheet.addTextBoxToSheet("Add Text to Sheet"): callsFuture<void> addTextBoxToSheet({required String text, required String target})when the app next runs (queued, likeRuns.deferred).final - addVideoToSheet → bool
-
Handle
spreadsheet.addVideoToSheet("Add Video to Sheet"): callsFuture<void> addVideoToSheet({required AssistantFile video, required String target})when the app next runs (queued, likeRuns.deferred).final - addWebVideoToSheet → bool
-
Handle
spreadsheet.addWebVideoToSheet("Add Web Video to Sheet"): callsFuture<void> addWebVideoToSheet({required Uri url, required String target})when the app next runs (queued, likeRuns.deferred).final -
cardButtons
→ Set<
String> -
Intents in replies whose card can have
AssistantCard.buttonsbelow iOS 26 / macOS 26 deployment targets (seeAssistantAction.cardButtons). Without it, only apps that target iOS 26 and macOS 26 show buttons; elsewhere cards show without them.finalinherited -
confirm
→ Map<
String, String> -
Intents Siri asks the user to confirm before running, with the
question, by intent name:
{'cancelTimer': 'Cancel {entities}?'}. Placeholders work as in dialogs. Confirmation happens in Swift, before anything is queued or Dart runs.finalinherited - confirmDeletes → bool
-
Delete intents (
deleteReminders) ask "Delete …?" first, the way Apple's apps do. Set false to delete at once; a delete listed in confirm still asks, with that question.finalinherited - createSheet → bool
-
Handle
spreadsheet.createSheet("Create Sheet"): callsFuture<String> createSheet({required String spreadsheet})live, with the app in the foreground.final - deleteSheet → bool
-
Handle
spreadsheet.deleteSheet("Delete Sheets"): deletes items.final -
dialogs
→ Map<
String, String> -
What Siri says when a turned-on intent finishes, by intent name:
{'createReminder': 'Added {title}.'}.{name}is the intent's parametername(an item is its title, a list reads "A, B and C");{result}is the item an intent returns. Checked at build time.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- openSheet → bool
-
Handle
spreadsheet.openSheet("Open Sheet"): callsFuture<void> openSheet({required String target})live, with the app in the foreground.final -
replies
→ Set<
String> -
Live intents whose Dart handler method returns an
AssistantReply(what Siri says, a result card, or several items to choose from) instead of a plain value. Changes those methods' return types.finalinherited - requiresUnlock → Unlock?
-
Whether the turned-on intents,
system.openand snapshot answers for these items run on a locked device;@AssistantActionsApp'srequiresUnlockwhen null. Some of Apple's schemas need the stricter Unlock.onThisDevice, which the generated intents then use.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema → String
-
The schema's identifier, such as
reminders.reminder.finalinherited - spreadsheet → FixedSpreadsheetDocument
-
The fixed
spreadsheet.documentevery item belongs to (required by the schema).final -
summaries
→ Map<
String, String> -
How Shortcuts shows turned-on intents, as a sentence, by intent name:
{'createReminder': 'Add {title} to {list}'}.{name}is the intent's parametername; the others are listed under the sentence. Replaces the sentence Apple's schema gives. Checked at build time.finalinherited - systemImage → String?
-
An SF Symbol shown with every item; see
AssistantEntity.systemImage. Mark a field@EntityImage()for each item's own image.finalinherited - updateSheet → bool
-
Handle
spreadsheet.updateSheet("Update Sheet"): updates items.final - url → String?
-
A deep link to an item, such as
'mira://tasks/{id}'; seeAssistantEntity.url.finalinherited - visualSearch → bool
-
Visual Intelligence shows these items for what the camera or a
screenshot shows; see
AssistantEntity.visualSearch.finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited