currentDeviceIsHeadphone method
Implementation
bool currentDeviceIsHeadphone() {
final currentInput = CallManager().getCurrentAudioInput();
if (currentInput != null) {
if (AudioManager().checkDeviceIsHeadphone(device: currentInput)) {
return true;
}
}
return false;
}