selectedAudioDevice method

  1. @override
Future<String?> selectedAudioDevice()
override

This method is used to select the audio device.

Implementation

@override
Future<String?> selectedAudioDevice() async {
  String? res;
  try {
    res =
        await mirrorFlyCallMethodChannel.invokeMethod('selectedAudioDevice');
    LogMessage.d('selectedAudioDevice', '$res');
    return res;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}