DownloadManager class

视频下载管理器

封装下载器生命周期、进度监听和状态通知,与 Controller 通过构造参数解耦。

Constructors

DownloadManager({required SafeValueNotifier<AVPTrackInfo?> currentTrackInfoNotifier, required AliPlayerWidgetData? widgetDataGetter(), required void showSuccess(String path), required void showInfo(String path), required void showError(String path)})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
savePath String?
下载保存路径
getter/setter pair
stateNotifier SafeValueNotifier<DownloadState>
当前下载状态
final

Methods

destroy() → void
释放下载器资源
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startVideoDownload() → void
启动视频下载流程
toString() String
A string representation of this object.
inherited

Operators

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