FlutterAliDownloader class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(String vid, int index)
→ Future
-
删除下载文件
-
getFilePath(String vid, int index)
→ Future
-
获取下载文件路径
-
getFullSaveForIOS(String savePath)
→ Future
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
prepare(String type, String vid, {int? index, String? region, String? accessKeyId, String? accessKeySecret, String? securityToken, String? playAuth})
→ Future
-
准备下载
type {FlutterAvpdef.DOWNLOADTYPE_STS / FlutterAvpdef.DOWNLOADTYPE_AUTH}
STS {vid,accessKeyId,accessKeySecret,securityToken}
AUTH {vid,playAuth}
-
release(String vid, int index)
→ Future
-
销毁下载对象
-
selectItem(String vid, int index)
→ Future
-
设置下载的trackIndex
-
setDownloaderConfig(String vid, String index, {String? userAgent, String? referrer, String? httpProxy, int? connectTimeoutS, int? networkTimeoutMs})
→ Future
-
设置下载config
-
setSaveDir(String path)
→ void
-
设置下载的保存路径
-
start(String vid, int index)
→ Stream?
-
开始下载
-
stop(String vid, int index)
→ Future
-
停止下载
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateSource(String type, String vid, String index, {String? region, String? accessKeyId, String? accessKeySecret, String? securityToken, String? playAuth})
→ Future
-
鉴权过期,更新下载源信息