isActivityAvailable
A Boolean value that indicates whether the current device supports headphone activity.
Declaration
var isActivityAvailable: Bool { get }Discussion
If the device supports headphone activity, start status updates and then wait for an update that indicates supported headphones are connected.