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