<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RoomPlan",
  "identifier" : "/documentation/RoomPlan/RoomCaptureViewDelegate/captureView(shouldPresent:error:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RoomPlan"
    ],
    "preciseIdentifier" : "s:8RoomPlan0A19CaptureViewDelegateP07captureD013shouldPresent5errorSbAA08CapturedA4DataV_s5Error_pSgtF"
  },
  "title" : "captureView(shouldPresent:error:)"
}
-->

# captureView(shouldPresent:error:)

Indicates whether the app processes raw scan results immediately after a scan session stops.

```
func captureView(shouldPresent roomDataForProcessing: CapturedRoomData, error: (any Error)?) -> Bool
```

## Parameters

`roomDataForProcessing`

A data object that contains the raw scan results.

`error`

An object that describes the problem when an error occurs; otherwise, `nil`.

## Return Value

A Boolean value that determines whether the app receives and displays post-processed scan results when the scan session stops.

## Discussion

If your app returns `true`:

- The framework processes the scan results immediately and calls [`captureView(didPresent:error:)`](/documentation/RoomPlan/RoomCaptureViewDelegate/captureView(didPresent:error:)).
- The view ([`RoomCaptureView`](/documentation/RoomPlan/RoomCaptureView)) displays the scanned room in a 3D rendition that the user can inspect using touch gestures.
  The user can view the room from different angles by panning, pinching, or expanding. After inspecting the scanned room, the user can decide whether to export the room to a file or whether to begin another scan.

To omit processing, return `false`. You can save the raw scan results (`roomDataForProcessing`) to an encoder for processing at a later date or send the raw data to a server for processing on a different device.

The default implementation returns `true`.

---

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)