identifier
TypeScriptget identifier(): stringSwift declarationvar identifier: UUID { get }A unique alphanumeric value that the framework assigns the room.
struct · iOS 16.0+ · SDK 27.1
struct CapturedRoomA structure that provides the key details of a scanned room. This structure represents the post-processed result of the room-scanning process. Your app receives an instance of this structure through: - The view delegate (``RoomCaptureViewDelegate``) callback ``RoomCaptureViewDelegate/captureView(didPresent:error:)-4x0hd`` for an app that scans rooms using the framework-provided view (``RoomCaptureView``). - A room builder object (``RoomBuilder``) by calling ``RoomBuilder/capturedRoom(from:)`` for an app that provides its own room-scanning view, or processes the saved results of a prior scan. With the room details, an app can provide custom features, such as rendering the room and enabling the user to modify the position of its objects. You can export the current state of the room at any time to a USDZ file by calling ``CapturedRoom/export(to:metadataURL:modelProvider:exportOptions:)``.
get identifier(): stringSwift declarationvar identifier: UUID { get }A unique alphanumeric value that the framework assigns the room.
get doors(): Array<CapturedRoom_Surface>Swift declarationvar doors: [CapturedRoom.Surface] { get }An array of doors that the framework identifies during a scan.
get story(): numberSwift declarationvar story: Int { get }The story, floor number, or level on which the captured room resides within a larger structure.
get walls(): Array<CapturedRoom_Surface>Swift declarationvar walls: [CapturedRoom.Surface] { get }An array of walls that the framework identifies during a scan.
exportToExportOptions(url: string, exportOptions?: CapturedRoom_USDExportOptions): voidSwift declarationfunc export(to url: URL, exportOptions: CapturedRoom.USDExportOptions = .mesh) throwsProduces a 3D asset from the captured room. The file format of the output is Universal Scene Description (USD). > Tip: Before iOS 17.4, the first letter of the USD file name needs to be a character other than a number. - Parameter url: A location that the captured room exports to. - Parameter exportOptions: Options that determine the export's data format.
exportToMetadataURLModelProviderExportOptions(url: string, metadataURL?: (string) | null, modelProvider?: (CapturedRoom_ModelProvider) | null, exportOptions?: CapturedRoom_USDExportOptions): voidSwift declarationfunc export(to url: URL, metadataURL: URL? = nil, modelProvider: CapturedRoom.ModelProvider? = nil, exportOptions: CapturedRoom.USDExportOptions = .mesh) throwsProduces a 3D asset from the captured room with the given metadata output URL and model provider. The file format of the output is Universal Scene Description (USD). > Tip: Before iOS 17.4, the first letter of the USD file name needs to be a character other than a number. - Parameter url: A location that the captured room exports to. - Parameter metadataURL: A location that the captured room metadata exports to. - Parameter modelProvider: A collection of mappings of object categories and attributes to 3D model URLs. - Parameter exportOptions: Options that determine the export's data format.
get floors(): Array<CapturedRoom_Surface>Swift declarationvar floors: [CapturedRoom.Surface] { get }An array of floors that the framework identifies during a scan.
get objects(): Array<CapturedRoom_Object>Swift declarationvar objects: [CapturedRoom.Object] { get }An array of objects that the framework identifies during a scan.
get version(): numberSwift declarationvar version: Int { get }A version number for the captured room.
get windows(): Array<CapturedRoom_Surface>Swift declarationvar windows: [CapturedRoom.Surface] { get }An array of windows that the framework identifies during a scan.
get openings(): Array<CapturedRoom_Surface>Swift declarationvar openings: [CapturedRoom.Surface] { get }An array of openings that the framework identifies during a scan.
get sections(): Array<CapturedRoom_Section>Swift declarationvar sections: [CapturedRoom.Section] { get }One or more room types that the framework observes in the room.
No declarations were skipped in this snapshot.