---
title: "captureSession(_:didAdd:)"
framework: roomplan
role: symbol
role_heading: Instance Method
path: "roomplan/roomcapturesessiondelegate/capturesession(_:didadd:)"
---

# captureSession(_:didAdd:)

Notifies the delegate of newly added surfaces and objects.

## Declaration

```swift
func captureSession(_ session: RoomCaptureSession, didAdd room: CapturedRoom)
```

## Parameters

- `session`: An object that manages the room-scanning process.
- `room`: A structure that contains the newest surfaces and objects that the framework identifies during the scan.

## See Also

### Updating a session

- [captureSession(_:didRemove:)](roomplan/roomcapturesessiondelegate/capturesession(_:didremove:).md)
- [captureSession(_:didChange:)](roomplan/roomcapturesessiondelegate/capturesession(_:didchange:).md)
- [captureSession(_:didUpdate:)](roomplan/roomcapturesessiondelegate/capturesession(_:didupdate:).md)
