getCurrentAudioInputDevice method
Get the current audio input device.
The function is only available for iOS platform.
Return the current audio input device if the function succeeds.
Implementation
@override
Future<ZoomVideoSdkAudioDevice> getCurrentAudioInputDevice() async {
if (!Platform.isIOS) {
throw UnimplementedError('getCurrentAudioInputDevice() is only implemented for iOS.');
}
var audioDeviceString = await methodChannel
.invokeMethod<String?>('getCurrentAudioInputDevice')
.then<String?>((String? value) => value);
Map<String, dynamic> audioDeviceMap = jsonDecode(audioDeviceString!);
ZoomVideoSdkAudioDevice audioDevice =
ZoomVideoSdkAudioDevice.fromJson(audioDeviceMap);
return audioDevice;
}