getNameFromHMSAudioMode static method

String getNameFromHMSAudioMode(
  1. HMSAudioMode mode
)

return name of enum

Implementation

static String getNameFromHMSAudioMode(HMSAudioMode mode) {
  switch (mode) {
    case HMSAudioMode.VOICE:
      return "voice";
    case HMSAudioMode.MUSIC:
      return "music";
    default:
      return "voice";
  }
}