---
title: "captureSession(_:didEndWith:error:)"
framework: roomplan
role: symbol
role_heading: Instance Method
path: "roomplan/roomcapturesessiondelegate/capturesession(_:didendwith:error:)-5f0mc"
---

# captureSession(_:didEndWith:error:)

Provides a default, blank implementation for when the capture session provides raw scan results.

## Declaration

```swift
func captureSession(_ session: RoomCaptureSession, didEndWith data: CapturedRoomData, error: (any Error)?)
```

## Parameters

- `session`: An object that manages the room-scanning process.
- `data`: A data object that contains the raw scan results.
- `error`: An object that describes the problem when an error occurs; otherwise, nil.

## Mentioned in

Scanning the rooms of a single structure

## Discussion

Discussion The system calls this implementation if your app doesn’t implement captureSession(_:didEndWith:error:).

## See Also

### Default implementations

- [captureSession(_:didStartWith:)](roomplan/roomcapturesessiondelegate/capturesession(_:didstartwith:)-3c74n.md)
- [captureSession(_:didUpdate:)](roomplan/roomcapturesessiondelegate/capturesession(_:didupdate:)-77zyg.md)
- [captureSession(_:didRemove:)](roomplan/roomcapturesessiondelegate/capturesession(_:didremove:)-9gs76.md)
- [captureSession(_:didChange:)](roomplan/roomcapturesessiondelegate/capturesession(_:didchange:)-gv3t.md)
- [captureSession(_:didProvide:)](roomplan/roomcapturesessiondelegate/capturesession(_:didprovide:)-5hvhl.md)
