<!--
{
  "availability" : [
    "macOS: 27.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpatialPreview",
  "identifier" : "/documentation/SpatialPreview/SpatialPreviewSessionState",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Spatial Preview"
    ],
    "preciseIdentifier" : "s:14SpatialPreview0aB12SessionStateO"
  },
  "title" : "SpatialPreviewSessionState"
}
-->

# SpatialPreviewSessionState

Indicates the state of the session and the health of the underlying connection.

```
enum SpatialPreviewSessionState
```

## Topics

### Enumeration Cases

[`case connected`](/documentation/SpatialPreview/SpatialPreviewSessionState/connected)

The session is actively connected

[`case interrupted`](/documentation/SpatialPreview/SpatialPreviewSessionState/interrupted)

The session connection has been interrupted, but may resume.

[`case invalidated`](/documentation/SpatialPreview/SpatialPreviewSessionState/invalidated)

The sesion has been invalidated and is no longer available.

[`case waiting`](/documentation/SpatialPreview/SpatialPreviewSessionState/waiting)

The session has been created, but not started.

### Instance Properties

[`var isInvalidated: Bool`](/documentation/SpatialPreview/SpatialPreviewSessionState/isInvalidated)

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)