getAllAvailableAudioInput method

  1. @override
Future<String> getAllAvailableAudioInput()
override

This method is used to get all the available audio input.

Implementation

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