setAudioInputDevice method
- String deviceName
Set the specified audio input device by deviceName.
deviceName The device name of the specified audio input device must be in the audio input device list.
This function is only available for iOS platform.
Return true indicates success, otherwise false.
Implementation
@override
Future<bool> setAudioInputDevice(String deviceName) async {
if (!Platform.isIOS) {
throw UnimplementedError('setAudioInputDevice() is only implemented for iOS.');
}
var params = <String, dynamic>{};
params.putIfAbsent("deviceName", () => deviceName);
return await methodChannel
.invokeMethod<bool>('setAudioInputDevice', params)
.then<bool>((bool? value) => value ?? false);
}