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

# capturedRoom(from:)

Processes the specified raw scan results and returns a detailed representation of the room.

```
func capturedRoom(from capturedRoomData: CapturedRoomData) async throws -> CapturedRoom
```

## Parameters

`capturedRoomData`

A data object that contains raw scan results.

## Return Value

A captured-room object that provides the key details of a scanned room.

## Discussion

You retrieve the argument `capturedRoomData` in one of the following ways:

- The [`captureView(shouldPresent:error:)`](/documentation/RoomPlan/RoomCaptureViewDelegate/captureView(shouldPresent:error:)) callback for an app that scans rooms using the framework-provided view ([`RoomCaptureView`](/documentation/RoomPlan/RoomCaptureView)).
- The [`captureSession(_:didEndWith:error:)`](/documentation/RoomPlan/RoomCaptureSessionDelegate/captureSession(_:didEndWith:error:)) callback for an app that implements its own room-scanning view.

---

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)