<!--
{
  "availability" : [
    "iOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AccessoryTransportExtension",
  "identifier" : "/documentation/AccessoryTransportExtension/AccessoryGPUWorker/Session",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Accessory Transport Extension",
      "AccessoryTransportExtension"
    ],
    "preciseIdentifier" : "s:27AccessoryTransportExtension0A9GPUWorkerV7SessionC"
  },
  "title" : "AccessoryGPUWorker.Session"
}
-->

# AccessoryGPUWorker.Session

A class that represents the data provider within a session.

```
final class Session
```

## Overview

The system creates an instance of this class when the transport extension’s [`AccessoryGPUWorker.FeatureSession`](/documentation/AccessoryTransportExtension/AccessoryGPUWorker/FeatureSession) starts, and passes it to your handler’s [`sessionStarted(_:)`](/documentation/AccessoryTransportExtension/AccessoryFeatureSessionHandler/sessionStarted(_:)) method. Hold the session weakly in your handler, and call [`send(data:)`](/documentation/AccessoryTransportExtension/AccessoryGPUWorker/Session/send(data:)) to send data to the transport extension.

## Topics

### Sending data

[`func send(data: Data) async throws`](/documentation/AccessoryTransportExtension/AccessoryGPUWorker/Session/send(data:))

Sends data to the transport extension within a session.

[`func send(message: AccessoryMessage) async throws`](/documentation/AccessoryTransportExtension/AccessoryGPUWorker/Session/send(message:))

Sends a message to the transport extension.

## Relationships

### Conforms To

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

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

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

[`AccessoryFeatureSession`](/documentation/AccessoryTransportExtension/AccessoryFeatureSession)

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

---

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)