---
title: captureDevice
framework: appintents
role: symbol
role_heading: Instance Property
path: appintents/assistantschemas/cameraenum/capturedevice
---

# captureDevice

The device or camera for capturing a photo or video.

## Declaration

```swift
var captureDevice: some AssistantSchemas.Enum { get }
```

## Overview

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.captureDevice schema: @AppEnum(schema: .camera.captureDevice) enum CaptureDevice: AppEnum {     case front     case back

static var caseDisplayRepresentations: [CaptureDevice: AppIntents.DisplayRepresentation] = [         .front: "Front",         .back: "Back",     ] } 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.
