---
title: init()
framework: spatialpreview
role: symbol
role_heading: Initializer
path: spatialpreview/connectedspatialendpointobserver/init()
---

# init()

Creates a new observer for monitoring connected device endpoint availability.

## Declaration

```swift
@MainActor init()
```
