getAvailableAudioInputsDevice method
Get the available audio input device.
The function is only available for iOS platform.
Return List of the audio input device if the function succeeds.
Implementation
@override
Future<List<ZoomVideoSdkAudioDevice>?> getAvailableAudioInputsDevice() async {
if (!Platform.isIOS) {
throw UnimplementedError('getAvailableAudioInputsDevice() is only implemented for iOS.');
}
var audioDeviceListString = await methodChannel
.invokeMethod<String?>('getAvailableAudioInputsDevice')
.then<String?>((String? value) => value);
var audioDeviceListJson = jsonDecode(audioDeviceListString!) as List;
List<ZoomVideoSdkAudioDevice> audioDeviceList = audioDeviceListJson
.map((languageJson) =>
ZoomVideoSdkAudioDevice.fromJson(languageJson))
.toList();
return audioDeviceList;
}