<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RoomPlan",
  "identifier" : "/documentation/RoomPlan/RoomCaptureSession/init()",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RoomPlan"
    ],
    "preciseIdentifier" : "s:8RoomPlan0A14CaptureSessionCACycfc"
  },
  "title" : "init()"
}
-->

# init()

Creates a room-capture session with the given AR session.

```
init()
```

## Discussion

By providing your own <doc://com.apple.documentation/documentation/ARKit/ARSession> object, you can continue your app’s existing AR experience by seamlessly transitioning into a room-scanning session with RoomPlan. In addition, continuing an `ARSession` across multiple room-capture sessions — specifically, different rooms in the same vicinity — enables you to merge multiple [`CapturedRoom`](/documentation/RoomPlan/CapturedRoom) objects into a single captured structure. For more information, see [`CapturedStructure`](/documentation/RoomPlan/CapturedStructure).

You can access the AR session at runtime with the [`arSession`](/documentation/RoomPlan/RoomCaptureSession/arSession) property.

---

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)