isHeadsetPluggedOrBluetoothDeviceConnected

open fun isHeadsetPluggedOrBluetoothDeviceConnected(): Boolean

Call this method to check if a wired headset is plugged or if a bluetooth device with audio output is connected

Return

true is exit a wired headset plugged or a bluetooth device is connected, false otherwise