setUploadConfig method
{zh}
@brief 设置上传的配置策略。
@param config 需要配置的上传策略。
@notes
键值 类型 描述 是否必须
BDFileUploadSliceRetryCount NSNumber(NSInteger) 分片失败重试次数 NO
BDFileUploadFileRetryCount NSNumber(NSInteger) 文件失败重试次数 NO
BDFileUploadTranTimeOutUnit NSNumber(NSInteger) socket 单次读写超时时间 NO
BDFileUploadSliceSize NSNumber(NSInteger) 分片的大小 NO
BDFileUploadSocketNum NSNumber(NSInteger) 并行分片上传线程数 NO
BDFileUploadMaxFailTimes NSNumber(NSInteger) 最大建联失败时间 NO
BDFileUploadAliveMaxFailTime NSNumber(NSInteger) 复用连接情况下最大超时时间 NO
BDFileUploadTcpOpenTimeOutMilliSec NSNumber(NSInteger) tcp 建联超时时间 NO
BDFileUploadRWTimeout NSNumber(NSInteger) socket 读写超时时间 NO
BDFileUploadHttpsEnable NSNumber(BOOL) 是否开启 https NO
BDFileUploadDiskResumeOption NSNumber(NSInteger) 是否开启断点续传功能 NO
Implementation
FutureOr<void> setUploadConfig(NSDictionary config) async {
return await nativeCall('setUploadConfig:', [config]);
}