<!--
{
  "availability" : [
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoveatedStreaming",
  "identifier" : "/documentation/FoveatedStreaming/FoveatedStreamingProviderStatus/disconnected(error:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Foveated Streaming"
    ],
    "preciseIdentifier" : "s:17FoveatedStreaming0aB14ProviderStatusO12disconnectedyACSo7NSErrorCSg_tcACmF"
  },
  "title" : "FoveatedStreamingProviderStatus.disconnected(error:)"
}
-->

# FoveatedStreamingProviderStatus.disconnected(error:)

The session has been disconnected for the provided reason.

```
case disconnected(error: NSError?)
```

## Discussion

If `error` is `nil`, then the disconnect event was requested by calling
[`disconnect()`](/documentation/FoveatedStreaming/FoveatedStreamingExtension/disconnect()).

If `error` is non-`nil`, then the disconnect event was due to an unexpected error.

---

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)