<!--
{
  "availability" : [
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ar_session_create_with_device",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:@F@ar_session_create_with_device"
  },
  "title" : "ar_session_create_with_device"
}
-->

# ar_session_create_with_device

Create a session connected to the specified device.

```
extern ar_session_tar_session_create_with_device(ar_device_t device);
```

## Parameters

`device`

The device to connect to.

## Return Value

An instance of `ar_session_t`.

## Discussion> Note: This type supports ARC. In non-ARC files, use `ar_retain()` and `ar_release()` to retain and release the object.

---

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)