Detect a wired or wireless (Bluetooth) headset, connected to you phone.Based on the cordova-plugin-headsetdetection plugin (https://www.npmjs.com/package/cordova-plugin-headsetdetection) by Eddy Verbruggen.
Only the "detect" action is supported. The event-based detection is on the roadmap.
Demonstration module included.