getAudioDeviceIconName static method
This method is used to get names for the audio devices It is used to set the icon based on the audio device
Implementation
static String getAudioDeviceIconName(HMSAudioDevice? hmsAudioDevice) {
switch (hmsAudioDevice) {
case HMSAudioDevice.SPEAKER_PHONE:
return "speaker_state_on";
case HMSAudioDevice.WIRED_HEADSET:
return "wired_headset";
case HMSAudioDevice.EARPIECE:
return "earpiece";
case HMSAudioDevice.BLUETOOTH:
return "bluetooth";
default:
return "speaker_state_on";
}
}