---
title: cameraLensSmudgeDetectionStatus
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/cameralenssmudgedetectionstatus
---

# cameraLensSmudgeDetectionStatus

A value specifying the status of camera lens smudge detection.

## Declaration

```swift
var cameraLensSmudgeDetectionStatus: AVCaptureCameraLensSmudgeDetectionStatus { get }
```

## Discussion

Discussion During initial detection execution, cameraLensSmudgeDetectionStatus returns AVCaptureCameraLensSmudgeDetectionStatusUnknown until the detection result settles. Once a detection result is produced, cameraLensSmudgeDetectionStatus returns the most recent detection result. This property can be key-value observed.

## See Also

### Configuring lens smudge detection

- [isCameraLensSmudgeDetectionEnabled](avfoundation/avcapturedevice/iscameralenssmudgedetectionenabled.md)
- [setCameraLensSmudgeDetectionEnabled(_:detectionInterval:)](avfoundation/avcapturedevice/setcameralenssmudgedetectionenabled(_:detectioninterval:).md)
- [cameraLensSmudgeDetectionInterval](avfoundation/avcapturedevice/cameralenssmudgedetectioninterval.md)
- [AVCaptureCameraLensSmudgeDetectionStatus](avfoundation/avcapturecameralenssmudgedetectionstatus.md)
