<!--
{
  "availability" : [
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoveatedStreaming",
  "identifier" : "/documentation/FoveatedStreaming/FoveatedStreamingProviderContext",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Foveated Streaming"
    ],
    "preciseIdentifier" : "s:17FoveatedStreaming0aB15ProviderContextC"
  },
  "title" : "FoveatedStreamingProviderContext"
}
-->

# FoveatedStreamingProviderContext

Context object provided to a streaming provider when it connects.

```
@MainActor final class FoveatedStreamingProviderContext
```

## Overview

Provides access to session state, endpoint information, focus region data,
and helpers for communicating events back to the host app.

## Topics

### Instance Properties

[`var configuration: [String : FoveatedStreamingSession.ConfigurationValue]`](/documentation/FoveatedStreaming/FoveatedStreamingProviderContext/configuration)

The connection parameters the host app supplied, keyed by name.

[`let endpoint: FoveatedStreamingProviderEndpoint`](/documentation/FoveatedStreaming/FoveatedStreamingProviderContext/endpoint)

The endpoint for which a connection is being requested (local IP or remote URL).

[`var immersiveSpaceFromRemoteSpaceTransform: simd_float4x4`](/documentation/FoveatedStreaming/FoveatedStreamingProviderContext/immersiveSpaceFromRemoteSpaceTransform)

Transform matrix from the remote space to the immersive space.

[`var latestFocusRegion: FoveatedStreamingProviderFocusRegion?`](/documentation/FoveatedStreaming/FoveatedStreamingProviderContext/latestFocusRegion)

The latest eye input data, to be used to enable foveated streaming.

[`var requestedInputCapabilities: Set<FoveatedStreamingSession.InputCapability>`](/documentation/FoveatedStreaming/FoveatedStreamingProviderContext/requestedInputCapabilities)

The set of input capabilities the host app has requested for this session.

[`var status: FoveatedStreamingProviderStatus`](/documentation/FoveatedStreaming/FoveatedStreamingProviderContext/status)

Reports the current status of the foveated streaming provider.

### Instance Methods

[`func attributeToHostApp(IOSurface)`](/documentation/FoveatedStreaming/FoveatedStreamingProviderContext/attributeToHostApp(_:)-50mip)

Attributes an IOSurface’s memory to the host app instead of the extension.

[`func attributeToHostApp(any MTLResource)`](/documentation/FoveatedStreaming/FoveatedStreamingProviderContext/attributeToHostApp(_:)-88yg7)

Attributes a Metal resource’s memory to the host app instead of the extension.

[`func reportConnectionInterrupted(any Error)`](/documentation/FoveatedStreaming/FoveatedStreamingProviderContext/reportConnectionInterrupted(_:))

Reports that a previously-established connection was unexpectedly lost.

[`func updateAvailableMessageChannels([FoveatedStreamingSession.MessageChannel.ID])`](/documentation/FoveatedStreaming/FoveatedStreamingProviderContext/updateAvailableMessageChannels(_:))

Notifies the host app that the list of available message channels has updated.

[`func verifyRemoteServerTrust(for: URLAuthenticationChallenge) async -> Bool`](/documentation/FoveatedStreaming/FoveatedStreamingProviderContext/verifyRemoteServerTrust(for:))

Verifies the server certificate presented in a TLS authentication challenge.

## Relationships

### Conforms To

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

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

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

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

[`Observable`](/documentation/Observation/Observable)

---

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)