captureMode
The capture mode for taking a photo or video.
Declaration
var captureMode: some AssistantSchemas.Enum { get }Overview
Use Swift macros that generate additional properties and add protocol conformance for your app enum implementation. The following example shows an app enum that conforms to the .camera.captureMode schema:
@AppEnum(schema: .camera.captureMode)
enum CaptureMode: AppEnum {
case selfie
case video
static var caseDisplayRepresentations: [CaptureMode: AppIntents.DisplayRepresentation] = [
.selfie: "Selfie",
.video: "Video",
]
}For more information about the .camera app intent domain, see doc:Making-camera-actions-available-to-siri-and-apple-intelligence. For general information about app intent domains, see doc:Integrating-actions-with-siri-and-apple-intelligence.