---
title: CapturedRoomData
framework: roomplan
role: symbol
role_heading: Structure
path: roomplan/capturedroomdata
---

# CapturedRoomData

An opaque object that holds the raw results of a scan.

## Declaration

```swift
struct CapturedRoomData
```

## Overview

Overview When your app completes a scan session by calling stop(), the framework provides your app with raw scan results in one of the following ways: The captureView(shouldPresent:error:) callback for an app that scans rooms using the framework-provided view (RoomCaptureView) The captureSession(_:didEndWith:error:) callback for an app that implements its own room-scanning view With an instance of this structure, your app can: Process the raw data into a detailed captured room object (CapturedRoom) by creating a room builder (RoomBuilder) and calling its capturedRoom(from:) function. Serialize to an encoder object, for example, to defer processing to a later date or to defer processing to another device.

## Topics

### Deserializing a prior scan

- [init(from:)](roomplan/capturedroomdata/init(from:).md)

### Serializing a prior scan

- [encode(to:)](roomplan/capturedroomdata/encode(to:).md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Captured Data

- [Merging multiple scans into a single structure](roomplan/merging-multiple-scans-into-a-single-structure.md)
- [Scanning the rooms of a single structure](roomplan/scanning-the-rooms-of-a-single-structure.md)
- [CapturedRoom](roomplan/capturedroom.md)
- [CapturedStructure](roomplan/capturedstructure.md)
- [Captured Object Attributes](roomplan/captured-object-attributes.md)
