---
title: "run(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/spatialtrackingsession/run(_:)"
---

# run(_:)

Runs the spatial tracking session with the specified configuration.

## Declaration

```swift
@discardableResult final func run(_ spatialTrackingConfiguration: SpatialTrackingSession.Configuration) async -> SpatialTrackingSession.UnavailableCapabilities?
```

## Parameters

- `spatialTrackingConfiguration`: An object that configures the AR data that RealityKit uses in the spatial tracking session.

## Return Value

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