---
title: "sessionStarted(_:)"
framework: Accessory Transport Extension
role: symbol
role_heading: Instance Method
platforms: [iOS 27.3+]
path: "accessorytransportextension/accessoryfeaturesessionhandler/sessionstarted(_:)"
---

# sessionStarted(_:)

Notifies the handler when its feature session starts.

## Declaration

```swift
func sessionStarted(_ session: Self.Session)
```

## Parameters

- `session`: The session that starts. Hold this parameter with a weak reference because the system owns it.

## Mentioned in

Sending data to an accessory in the background

## Discussion

Discussion Save this session so your app can send data to the transport extension at a later time.

## See Also

### Handling the session life cycle

- [sessionInvalidated(error:)](accessorytransportextension/accessoryfeaturesessionhandler/sessioninvalidated(error:).md)
