---
title: "startStatusUpdates(to:withHandler:)"
framework: coremotion
role: symbol
role_heading: Instance Method
path: "coremotion/cmheadphoneactivitymanager/startstatusupdates(to:withhandler:)"
---

# startStatusUpdates(to:withHandler:)

Starts headphone status updates, providing data to the given handler through the given queue.

## Declaration

```swift
func startStatusUpdates(to queue: OperationQueue, withHandler handler: @escaping CMHeadphoneActivityManager.StatusHandler)
```

## Discussion

Discussion If a compatible set of headphones is already connected before you call this method, the handler is called with a status update of CMHeadphoneActivityManager.Status.connected for the connected headphones.

## See Also

### Starting and Stopping Updates

- [startActivityUpdates(to:withHandler:)](coremotion/cmheadphoneactivitymanager/startactivityupdates(to:withhandler:).md)
- [stopActivityUpdates()](coremotion/cmheadphoneactivitymanager/stopactivityupdates().md)
- [stopStatusUpdates()](coremotion/cmheadphoneactivitymanager/stopstatusupdates().md)
