setDownloaderConfig method

Future setDownloaderConfig(
  1. String vid,
  2. String index, {
  3. String? userAgent,
  4. String? referrer,
  5. String? httpProxy,
  6. int? connectTimeoutS,
  7. int? networkTimeoutMs,
})

设置下载config

Implementation

Future<dynamic> setDownloaderConfig(String vid, String index,
    {String? userAgent,
    String? referrer,
    String? httpProxy,
    int? connectTimeoutS,
    int? networkTimeoutMs}) {
  var map = {
    'vid': vid,
    'index': index,
    'UserAgent': userAgent,
    'Referrer': referrer,
    'HttpProxy': httpProxy,
    'ConnectTimeoutS': connectTimeoutS,
    'NetworkTimeoutMs': networkTimeoutMs
  };
  return _methodChannel.invokeMethod("setDownloaderConfig", map);
}