isHeadsetPlugged

open fun isHeadsetPlugged(): Boolean

Call this method to check whether a wired headset is connected or not.

Return

true if a wired headset is connected, false otherwise