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