TXFlutterDownloadApi class

Constructors

TXFlutterDownloadApi.new({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
Constructor for TXFlutterDownloadApi. The binaryMessenger named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.

Properties

hashCode int
The hash code for this object.
no setterinherited
pigeonVar_binaryMessenger BinaryMessenger?
final
pigeonVar_messageChannelSuffix String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteDownloadMediaInfo(TXVodDownloadMediaMsg msg) Future<BoolMsg>
删除下载任务
getDownloadInfo(TXVodDownloadMediaMsg msg) Future<TXVodDownloadMediaMsg>
获得指定视频的下载信息
getDownloadList() Future<TXDownloadListMsg>
获取所有视频下载列表
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resumeDownload(TXVodDownloadMediaMsg msg) Future<void>
继续下载,与开始下载接口有区别,该接口会寻找对应的缓存,复用之前的缓存来续点下载, 而开始下载接口会启动一个全新的下载 videoDownloadModel: 下载构造体
setDownloadHeaders(MapMsg headers) Future<void>
设置下载请求头
startDownload(TXVodDownloadMediaMsg msg) Future<void>
开始下载 videoDownloadModel: 下载构造体
startPreLoad(PreLoadMsg msg) Future<IntMsg>
启动预下载。 playUrl: 要预下载的url preloadSizeMB: 预下载的大小(单位:MB) preferredResolution 期望分辨率,long类型,值为高x宽。可参考如720*1080。不支持多分辨率或不需指定时,传-1。 返回值:任务ID,可用这个任务ID停止预下载 stopPreload
startPreLoadByParams(PreLoadInfoMsg msg) Future<void>
stopDownload(TXVodDownloadMediaMsg msg) Future<void>
停止下载 videoDownloadModel: 下载构造体
stopPreLoad(IntMsg msg) Future<void>
停止预下载。 taskId: 任务id
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

pigeonChannelCodec → const MessageCodec<Object?>