<!--
{
  "availability" : [
    "visionOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoveatedStreaming",
  "identifier" : "/documentation/FoveatedStreaming/FoveatedStreamingSession/DisconnectReason",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foveated Streaming"
    ],
    "preciseIdentifier" : "s:17FoveatedStreaming0aB7SessionC16DisconnectReasonV"
  },
  "title" : "FoveatedStreamingSession.DisconnectReason"
}
-->

# FoveatedStreamingSession.DisconnectReason

A description of why a foveated streaming session’s status is in the disconnected state.

```
struct DisconnectReason
```

## Overview

This struct may also be thrown as an error.

## Topics

### Type Properties

[`static var appInitiatedDisconnect: FoveatedStreamingSession.DisconnectReason`](/documentation/FoveatedStreaming/FoveatedStreamingSession/DisconnectReason/appInitiatedDisconnect)

A disconnect reason indicating the disconnect was initiated by the application.

[`static var endpointInitiatedDisconnect: FoveatedStreamingSession.DisconnectReason`](/documentation/FoveatedStreaming/FoveatedStreamingSession/DisconnectReason/endpointInitiatedDisconnect)

A disconnect command was initiated by the remote endpoint.

[`static var unauthorized: FoveatedStreamingSession.DisconnectReason`](/documentation/FoveatedStreaming/FoveatedStreamingSession/DisconnectReason/unauthorized)

A disconnect reason indicating the person denied authorization of the foveated streaming session.

[`static var unavailable: FoveatedStreamingSession.DisconnectReason`](/documentation/FoveatedStreaming/FoveatedStreamingSession/DisconnectReason/unavailable)

A disconnect reason indicating the foveated streaming service is currently unavailable.

## Relationships

### Conforms To

[`LocalizedError`](/documentation/Foundation/LocalizedError)

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

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

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

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

---

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)