CameraIntents class

Turns on Apple's camera intents that belong to no entity. Put it on the class that implements the generated CameraAssistantHandler.

dialogs and confirm give, by intent name, what Siri says when one finishes and what it asks first. replies lets live intents' handlers return an AssistantReply, and cardButtons lets their cards have buttons below iOS / macOS 26 targets. summaries gives the sentence Shortcuts shows each as; requiresUnlock keeps Siri from running them on a locked device.

Inheritance

Constructors

CameraIntents({bool switchDevice = false, bool startCapture = false, bool openInCaptureMode = false, bool setDevice = false, bool stopCapture = false, Map<String, String> dialogs = const {}, Map<String, String> confirm = const {}, Set<String> replies = const {}, Set<String> cardButtons = const {}, Map<String, String> summaries = const {}, Unlock? requiresUnlock})
const

Properties

cardButtons → Set<String>
Intents in replies whose card can have buttons below iOS 26 / macOS 26. See SchemaEntity.cardButtons.
finalinherited
confirm → Map<String, String>
Intents Siri asks the user to confirm first, with the question. See SchemaEntity.confirm.
finalinherited
dialogs → Map<String, String>
What Siri says when a turned-on intent finishes, by intent name. See SchemaEntity.dialogs.
finalinherited
domain → String
The schema domain, such as camera.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
openInCaptureMode → bool
Handle camera.openInCaptureMode ("Open Camera"): calls Future<void> openInCaptureMode({required Enum target}) live, with the app in the foreground.
final
replies → Set<String>
Live intents whose handler method returns an AssistantReply. See SchemaEntity.replies.
finalinherited
requiresUnlock → Unlock?
Whether the turned-on intents run on a locked device. See SchemaEntity.requiresUnlock.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
setDevice → bool
Handle camera.setDevice ("Set Camera Position"): calls Future<void> setDevice({required Enum device}) live, with the app in the foreground.
final
startCapture → bool
Handle camera.startCapture ("Start Capture"): calls Future<void> startCapture({required Enum captureMode, Enum? device, Enum? timerDuration}) live, with the app in the foreground.
final
stopCapture → bool
Handle camera.stopCapture ("Stop Capture"): calls Future<void> stopCapture() when the app next runs (queued, like Runs.deferred).
final
summaries → Map<String, String>
How Shortcuts shows turned-on intents, by intent name. See SchemaEntity.summaries.
finalinherited
switchDevice → bool
Handle camera.switchDevice ("Flip Camera"): calls Future<void> switchDevice() live, with the app in the foreground.
final

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