<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImageCaptureCore",
  "identifier" : "/documentation/ImageCaptureCore/ICScannerDevice/cancelScan()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ImageCaptureCore"
    ],
    "preciseIdentifier" : "c:objc(cs)ICScannerDevice(im)cancelScan"
  },
  "title" : "cancelScan()"
}
-->

# cancelScan()

Cancels the current scan.

```
func cancelScan()
```

## Discussion

Cancels the scan in progress by calling [`requestOverviewScan()`](/documentation/ImageCaptureCore/ICScannerDevice/requestOverviewScan()) or [`requestScan()`](/documentation/ImageCaptureCore/ICScannerDevice/requestScan()).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)