getAudioDeviceList method

Future<List> getAudioDeviceList(
  1. int type
)

Implementation

Future<List> getAudioDeviceList(int type) async {
  var result = await (() {
    Map completerMap = createCompleter();
    ZegoFlutterEngine.instance.getAudioDeviceList(
        type, completerMap["success"], completerMap["fail"]);
    return completerMap["completer"].future;
  })();
  return formatDeviceList(jsonDecode(result));
}