captureMode
The capture mode for taking a photo or video.
Declaration
var captureMode: some AssistantSchemas.Enum { get }Mentioned in
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 Making camera actions available to Siri and Apple Intelligence. For general information about app intent domains, see Integrating actions with Siri and Apple Intelligence.