getAudioModeFromName static method

HMSAudioMode getAudioModeFromName(
  1. String name
)

return value of enum

Implementation

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