getAudioDeviceName static method

String getAudioDeviceName(
  1. HMSAudioDevice? hmsAudioDevice
)

This method is used to get names for the audio devices

Implementation

static String getAudioDeviceName(HMSAudioDevice? hmsAudioDevice) {
  switch (hmsAudioDevice) {
    case HMSAudioDevice.SPEAKER_PHONE:
      return "Speaker";
    case HMSAudioDevice.WIRED_HEADSET:
      return "Earphone";
    case HMSAudioDevice.EARPIECE:
      return "Phone";
    case HMSAudioDevice.BLUETOOTH:
      return "Bluetooth Device";
    default:
      return "Auto";
  }
}