switchMediaDevice static method

Future<void> switchMediaDevice(
  1. String deviceName, {
  2. String? speakerId,
  3. String? micDeviceId,
})

Implementation

static Future<void> switchMediaDevice(String deviceName,
    {String? speakerId, String? micDeviceId}) async {
  await _channel.invokeMethod('switchMediaDevice', {
    'deviceName': deviceName,
    'speakerId': speakerId,
    'micDeviceId': micDeviceId
  });
}