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

# SpatialPreviewEndpoint

An endpoint representing a visionOS device you can connect to for spatial preview.

```
struct SpatialPreviewEndpoint
```

## Overview

Obtain an endpoint from [`endpoint`](/documentation/SpatialPreview/ConnectedSpatialEndpointObserver/endpoint) when a device
is connected via Mac Virtual Display, or let the user select one with
[`SpatialPreviewDevicePicker`](/documentation/SpatialPreview/SpatialPreviewDevicePicker). Pass the endpoint to
[`start(endpoint:)`](/documentation/SpatialPreview/DocumentPreviewSession/start(endpoint:)) or
[`start(endpoint:parameters:viewerOptions:)`](/documentation/SpatialPreview/USDPreviewSession/start(endpoint:parameters:viewerOptions:)) to begin a session.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)