<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/SpatialTrackingSession/run(_:session:arConfiguration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22SpatialTrackingSessionC0A3KitE3run_7session15arConfigurationAC23UnavailableCapabilitiesVSgAC0J0V_So9ARSessionCSo15ARConfigurationCtYaF"
  },
  "title" : "run(_:session:arConfiguration:)"
}
-->

# run(_:session:arConfiguration:)

Runs the spatial tracking session with a spatial tracking configuration, an AR session, and an AR configuration.

```
@discardableResult @MainActor final func run(_ configuration: SpatialTrackingSession.Configuration, session: ARSession, arConfiguration: ARConfiguration) async -> SpatialTrackingSession.UnavailableCapabilities?
```

## Parameters

`configuration`

An object that configures the AR data that RealityKit uses in the spatial tracking session.

`session`

An object that coordinates the major processes that ARKit performs on your behalf to create an augmented reality experience.

`arConfiguration`

An object that defines motion and scene tracking behaviors for the session.

## Return Value

The unavailable capabilities based on the hardware and the user authorization.

## Discussion

You manage and run the <doc://com.apple.documentation/documentation/ARKit/ARSession> for the `SpatialTrackingSession`.

---

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)