getAudioDeviceName static method
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";
}
}