currentDeviceIsSpeaker method

bool currentDeviceIsSpeaker()

Implementation

bool currentDeviceIsSpeaker() {
  final currentInput = CallManager().getCurrentAudioInput();
  if (currentInput != null) {
    if (AudioManager().checkDeviceIsSpeaker(device: currentInput)) {
      return true;
    }
  }
  return false;
}