isHeadsetOrBluetoothAvailable

open fun isHeadsetOrBluetoothAvailable(@NonNull context: Context, @NonNull audioManager: AudioManager): Boolean

Called to check if there is a connected headset or Bluetooth.

Return

Boolean true if there is a connected headset or bluetooth, falseotherwise. Will be removed soon.

Parameters

audioManager