getAudioDeviceIconName static method

String getAudioDeviceIconName(
  1. HMSAudioDevice? hmsAudioDevice
)

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";
  }
}