capturedRoom(from:)
Processes the specified raw scan results and returns a detailed representation of the room.
Declaration
func capturedRoom(from capturedRoomData: CapturedRoomData) async throws -> CapturedRoomParameters
- 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:) 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.