DownloadStatus class

Download status information corresponding to a media download.

Constructors

DownloadStatus(MediaInfo mediaInfo, int? status, int? reason, String? reasonDescription, int? downloadPercent, String? poster)

Properties

downloadPercent → int?
Overall download progress as percentage.
final
hashCode → int
The hash code for this object.
no setterinherited
mediaInfo → MediaInfo
A MediaInfo object containing information about the media this DownloadStatus corresponds to.
final
poster → String?
Path to a poster file for the download; null if poster not available yet.
final
reason → int?
More detail on status of the download. It's meaning is dependent on the value of field status.
final
reasonDescription → String?
Optional description in addition to reason. When not null, this is a json string which can be parsed to obtain error message, http code, etc.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → int?
Status of this download. One of VdoDownloadManager.STATUS_* constants.
final

Methods

isExpired() → Future<bool?>
Checks if the downloaded media is expired. (Android only)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromMap(Map<Object?, Object?> downloadStatusMap) → DownloadStatus