---
title: transport
framework: accessorytransportextension
role: symbol
role_heading: Instance Property
path: accessorytransportextension/accessorytransportsession/transport
---

# transport

A transport method that the session uses to communicate with the accessory.

## Declaration

```swift
var transport: AccessoryTransport?
```

## Discussion

Discussion Use this property to determine which transport the current instance handles, and customize your message delivery accordingly. The system may launch your extension in separate processes for different transports. note: The system automatically selects transports in this order: Bluetooth (if connected), local network (if available), then internet (if available). The system notifies your extension of the transport method it selects. Customize payload contents based on the selected type.

## See Also

### Determining the communication method

- [transportStateRestoreIdentifier](accessorytransportextension/accessorytransportsession/transportstaterestoreidentifier.md)
- [pushToken](accessorytransportextension/accessorytransportsession/pushtoken.md)
