startStatusUpdates(to:withHandler:)
Starts headphone status updates, providing data to the given handler through the given queue.
Declaration
func startStatusUpdates(to queue: OperationQueue, withHandler handler: @escaping CMHeadphoneActivityManager.StatusHandler)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.