---
title: "captureView(shouldPresent:error:)"
framework: roomplan
role: symbol
role_heading: Instance Method
path: "roomplan/roomcaptureviewdelegate/captureview(shouldpresent:error:)-5l74q"
---

# captureView(shouldPresent:error:)

Indicates that the app receives and displays post-processed scan results when the scan session stops.

## Declaration

```swift
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

Return Value This implementation always returns true.

## Discussion

Discussion If your app’s room-capture view delegate doesn’t implement captureView(shouldPresent:error:), then the framework calls this default implementation.

## See Also

### Default implementations

- [captureView(didPresent:error:)](roomplan/roomcaptureviewdelegate/captureview(didpresent:error:)-6em1r.md)
